/* ===== SP Blog Single — TOC left rail + editorial comments ===== */
/* Container width is handled in wp-custom-css (loaded later, wins): desktop 1120px, mobile 760px */

/* ---- TOC rail ---- */
.sp-toc-wrap {
	display: none; /* hidden until JS finds >=2 headings */
	position: sticky;
	top: 110px;
	align-self: start;
	font-family: 'Literata', Georgia, serif;
	/* Let the rail ride with the page: no inner scrolling, so the wheel is
	   never trapped over the rail (which caused bounce / stuck feel). */
	max-height: none;
	overflow: visible;
}

@media (min-width: 1025px) {
	/* Astra's separate-container gives article a big white-card padding;
	   clear it so the TOC rail sits flush at the container edge */
	body.single .ast-article-single,
	body.single article.post {
		padding: 0 !important;
		background: transparent !important;
	}
	/* Two-column grid lives on the single-layout wrapper:
	   header spans full width, TOC (col 1) beside entry-content (col 2) */
	body.single .single-layout-1 {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		column-gap: 56px;
	}
	.sp-toc-wrap {
		display: block;
		grid-column: 1;
		grid-row: 2;
	}
	/* Header (title + featured image) sits in the right column so the image
	   width matches the body text width (no full-bleed over the TOC rail) */
	body.single .entry-header {
		grid-column: 2;
		grid-row: 1;
	}
	body.single .entry-content {
		grid-column: 2;
		grid-row: 2;
	}
}

.sp-toc-label {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(31, 27, 22, 0.45);
}

.sp-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid rgba(31, 27, 22, 0.12);
}

.sp-toc-item {
	margin: 0;
}

.sp-toc-item a {
	display: block;
	padding: 6px 0 6px 16px;
	margin-left: -1px;
	border-left: 1px solid transparent;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(31, 27, 22, 0.65);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.sp-toc-item a:hover {
	color: #1F1B16;
}

.sp-toc-item a.is-active {
	color: #1F1B16;
	border-left-color: #1F1B16;
}

.sp-toc-h3 a {
	padding-left: 28px;
	font-size: 13px;
	color: rgba(31, 27, 22, 0.5);
}

/* Mobile: TOC hidden (no rail on small screens) */
@media (max-width: 1024px) {
	.sp-toc-wrap {
		display: none !important;
	}
}

/* Back to blog: centered, quiet editorial link at the end of the post */
/* Hide Astra's default Previous/Next navigation (we print our own) */
body.single .post-navigation:not(.sp-back-to-blog) {
	display: none !important;
}

body.single .sp-back-to-blog {
	margin: 48px 0 0 !important;
	text-align: center !important;
}

body.single .sp-back-to-blog .nav-links {
	border: none !important;
	padding: 0 !important;
}

body.single .sp-back-to-blog a {
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	color: rgba(31, 27, 22, 0.6) !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(31, 27, 22, 0.35) !important;
	padding-bottom: 3px !important;
	transition: color 0.2s ease, border-color 0.2s ease;
}

body.single .sp-back-to-blog a:hover {
	color: #1F1B16 !important;
	border-bottom-color: #1F1B16 !important;
}

/* ---- Comments: editorial styling ---- */
/* Author + date line under the title (hide Astra's broken "By" fallback bits) */
body.single .entry-meta {
	display: block !important;
	font-family: 'Literata', Georgia, serif !important;
	font-size: 13px !important;
	color: rgba(31, 27, 22, 0.55) !important;
	margin: 6px 0 0 !important;
}

body.single .entry-meta .posted-by,
body.single .entry-meta .posted-on {
	display: inline !important;
}

body.single .entry-meta .posted-by a,
body.single .entry-meta .posted-on a {
	color: rgba(31, 27, 22, 0.55) !important;
	text-decoration: none !important;
}

body.single .entry-meta .posted-by a:hover,
body.single .entry-meta .posted-on a:hover {
	color: #1F1B16 !important;
}

/* Hide comment-count + category bits in the meta line (keep author + date) */
body.single .entry-meta .comments-link,
body.single .entry-meta .ast-terms-link {
	display: none !important;
}

/* Date in meta: quiet editorial style */
body.single .entry-meta .posted-on {
	font-family: 'Literata', Georgia, serif !important;
	font-size: 13px !important;
	color: rgba(31, 27, 22, 0.55) !important;
}

body.single #comments {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid rgba(31, 27, 22, 0.15);
}

/* Align the comments area with the body column (right of the 220px TOC + 56px gap) */
@media (min-width: 1025px) {
	body.single #comments {
		margin-left: 276px !important;
		max-width: 804px !important;
	}
}

body.single .comments-area .comment-reply-title {
	font-family: 'Literata', Georgia, serif !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	color: #1F1B16 !important;
	margin: 0 0 8px !important;
}

body.single .comment-notes {
	font-family: 'Literata', Georgia, serif !important;
	font-size: 13px !important;
	color: rgba(31, 27, 22, 0.55) !important;
	margin-bottom: 24px !important;
}

/* Comment form inputs follow the site's input standard */
body.single #comments input[type="text"],
body.single #comments input[type="email"],
body.single #comments input[type="url"],
body.single #comments textarea {
	background: #ffffff !important;
	border: 1px solid #D9D9D9 !important;
	border-radius: 0 !important;
	height: 46px !important;
	font-family: 'Literata', Georgia, serif !important;
	font-size: 15px !important;
	color: #1F1B16 !important;
	padding: 0 14px !important;
}

body.single #comments textarea {
	height: 140px !important;
	padding: 12px 14px !important;
	line-height: 1.6 !important;
}

body.single #comments input::placeholder,
body.single #comments textarea::placeholder {
	color: rgba(31, 27, 22, 0.45) !important;
}

/* Submit button: site standard ink button */
body.single #comments .submit {
	background: #1F1B16 !important;
	color: #ffffff !important;
	border: 1px solid #1F1B16 !important;
	border-radius: 4px !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 1px !important;
	text-transform: uppercase !important;
	padding: 12px 28px !important;
	height: 46px !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

body.single #comments .submit:hover {
	background: #ffffff !important;
	color: #1F1B16 !important;
}

body.single .sp-cancel-reply-wrap {
	margin: 14px 0 0 !important;
	text-align: right !important;
}

body.single .sp-cancel-reply-wrap a {
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	color: rgba(31, 27, 22, 0.55) !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(31, 27, 22, 0.3) !important;
	padding-bottom: 2px !important;
}

body.single .sp-cancel-reply-wrap a:hover {
	color: #1F1B16 !important;
	border-bottom-color: #1F1B16 !important;
}

/* ---- Comment form ---- */
body.single .ast-comment-list {
	list-style: none;
	margin: 36px 0 0 !important;
	padding: 0 !important;
}

body.single .ast-comment-list > li {
	margin-bottom: 36px;
}

body.single .ast-comment-list .ast-comment {
	background: transparent !important;
	border: none !important;
	border-bottom: 1px solid rgba(31, 27, 22, 0.1) !important;
	padding: 0 0 28px !important;
}

/* Comment header: avatar + author + date on one tidy line */
body.single .ast-comment-info {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	margin-bottom: 14px !important;
}

body.single .ast-comment-avatar-wrap {
	margin: 0 !important;
	padding: 0 !important;
}

body.single .ast-comment-avatar-wrap img {
	border-radius: 50% !important;
	width: 42px !important;
	height: 42px !important;
}

body.single .ast-comment-meta {
	padding: 0 !important;
	margin: 0 !important;
}

body.single .ast-comment-cite-wrap {
	margin: 0 !important;
}

body.single .ast-comment-author {
	display: block;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	font-style: normal !important;
	color: #1F1B16 !important;
	text-transform: none !important;
}

/* Author name: never show email, never show a weird site link */
body.single .ast-comment-author .fn a {
	color: #1F1B16 !important;
	text-decoration: none !important;
}

body.single .ast-comment-author .fn a[href*="solopotters.com"],
body.single .ast-comment-author .url {
	pointer-events: none !important;
	cursor: default !important;
}

body.single .ast-comment-time {
	font-family: 'Literata', Georgia, serif !important;
	font-size: 12px !important;
	color: rgba(31, 27, 22, 0.5) !important;
}

body.single .ast-comment-time a {
	color: rgba(31, 27, 22, 0.5) !important;
	text-decoration: none !important;
}

body.single .ast-comment-content {
	font-family: 'Literata', Georgia, serif !important;
	font-size: 15px !important;
	line-height: 1.7 !important;
	color: #4A4238 !important;
	margin: 0 !important;
}

body.single .ast-comment-content p {
	margin: 0 0 10px !important;
}

/* Reply / edit links: quiet uppercase */
body.single .ast-comment-edit-reply-wrap {
	display: flex !important;
	gap: 16px !important;
	margin-top: 12px !important;
}

body.single .ast-comment-edit-reply-wrap a {
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	color: rgba(31, 27, 22, 0.6) !important;
	text-decoration: none !important;
}

body.single .ast-comment-edit-reply-wrap a:hover {
	color: #1F1B16 !important;
}

/* Nested replies: slight indent */
body.single .ast-comment-list .children {
	list-style: none;
	margin: 20px 0 0 36px !important;
	padding: 0 !important;
}

/* Comments title: remove Astra's "1 thought on..." heading entirely + kill its white card */
body.single .comments-title,
body.single .comments-title-wrap {
	display: none !important;
}

/* Kill Astra's white-card backgrounds in the comments area so it blends with the page */
body.single #comments,
body.single .comments-area,
body.single #comments .comment-respond,
body.single .ast-comment-list,
body.single .ast-comment-list li {
	background-color: transparent !important;
	background-image: none !important;
}

/* Logged-in-as line: clean, no WP cruft */
body.single .sp-logged-in-as {
	font-family: 'Literata', Georgia, serif !important;
	font-size: 13px !important;
	color: rgba(31, 27, 22, 0.55) !important;
	margin: 0 0 20px !important;
}

body.single .sp-logged-in-as strong {
	color: #1F1B16 !important;
	font-weight: 600 !important;
}

body.single .sp-logged-in-as a {
	color: rgba(31, 27, 22, 0.55) !important;
	text-decoration: underline !important;
}

/* ---- Login gate (未登录访客) ---- */
.sp-comment-login-gate {
	background: #FBF9F5 !important;
	border: 1px solid rgba(31, 27, 22, 0.12) !important;
	border-radius: 0 !important;
	padding: 40px 32px !important;
	margin: 32px 0 8px !important;
	text-align: center;
}

.sp-comment-login-title {
	font-family: 'Literata', Georgia, serif !important;
	font-size: 20px !important;
	font-weight: 600 !important;
	color: #1F1B16 !important;
	margin: 0 0 8px !important;
}

.sp-comment-login-text {
	font-family: 'Literata', Georgia, serif !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: rgba(31, 27, 22, 0.6) !important;
	margin: 0 0 24px !important;
}

.sp-comment-login-btn {
	display: inline-block;
	background: #1F1B16 !important;
	color: #ffffff !important;
	border: 1px solid #1F1B16 !important;
	border-radius: 4px !important;
	font-family: 'Literata', Georgia, serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 1px !important;
	text-transform: uppercase !important;
	padding: 12px 32px !important;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease;
}

.sp-comment-login-btn:hover {
	background: #ffffff !important;
	color: #1F1B16 !important;
}

/* ---- Share block (post footer) — Essence of Tea style: underlined text button + native share sheet ---- */
/* No top border here: the comments area below provides the single divider for the page bottom. */
.sp-share-block {
	margin: 40px 0 0 !important;
	padding-top: 0 !important;
}

.sp-share-trigger {
	position: relative;
}

.sp-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent !important;
	color: #1F1B16 !important;
	border: none !important;
	border-bottom: 1px solid rgba(31, 27, 22, 0.4) !important;
	border-radius: 0 !important;
	font-family: 'Literata', Georgia, serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	padding: 2px 2px 4px !important;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.sp-share-btn:hover {
	border-bottom-color: #1F1B16 !important;
	background: transparent !important;
}

.sp-share-icon {
	display: block;
	flex: none;
}

.sp-share-panel {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	max-width: 420px;
}

.sp-share-panel[hidden] {
	display: none;
}

.sp-share-url {
	flex: 1;
	min-width: 0;
	background: #FBF9F5 !important;
	border: 1px solid rgba(31, 27, 22, 0.2) !important;
	border-radius: 0 !important;
	font-family: 'Literata', Georgia, serif !important;
	font-size: 13px !important;
	color: #1F1B16 !important;
	padding: 8px 10px !important;
}

.sp-share-copy {
	background: transparent !important;
	color: #1F1B16 !important;
	border: none !important;
	border-bottom: 1px solid rgba(31, 27, 22, 0.4) !important;
	border-radius: 0 !important;
	font-family: 'Literata', Georgia, serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	padding: 2px 2px 4px !important;
	cursor: pointer;
	transition: border-color 0.2s ease;
	white-space: nowrap;
}

.sp-share-copy:hover {
	border-bottom-color: #1F1B16 !important;
	background: transparent !important;
}

.sp-share-copied {
	font-family: 'Literata', Georgia, serif !important;
	font-size: 13px !important;
	color: rgba(31, 27, 22, 0.62) !important;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.sp-share-panel {
		max-width: 100%;
	}
	.sp-share-url {
		font-size: 12px !important;
		padding: 7px 8px !important;
	}
	.sp-share-copy {
		font-size: 12px !important;
	}
}

/* ---- Long content safety: never let a bare URL stretch the comments area ---- */
body.single .ast-comment-content,
body.single .ast-comment-content p,
body.single .comment-content,
body.single #comments .comment-text,
body.single .comment-awaiting-moderation {
	overflow-wrap: break-word !important;
	word-break: break-word !important;
	max-width: 100% !important;
}
body.single .comment-awaiting-moderation {
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	font-size: 12px !important;
	font-style: italic !important;
	color: #A2603F !important;
	margin: 4px 0 0 !important;
	display: block;
}
body.single #comments .ast-comment { max-width: 100%; overflow: hidden; }

/* ---- Honeypot decoy: invisible to humans, present for bots ---- */
body.single .sp-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
