html { scroll-behavior: smooth; }
h2[id], h3[id] { scroll-margin-top: 80px; }

.pispace-summary {
	background: #fff8e1;
	border-left: 5px solid #f5a623;
	border-radius: 8px;
	padding: 20px 26px;
	margin: 1.5em 0;
	line-height: 1.6;
	color: #1a1a1a;
}
.pispace-summary p { margin: 0; }

.pispace-toc {
	/* Nền trong suốt: hiện đúng màu nền của giao diện (sáng hoặc tối). */
	background: transparent;
	border: 1px solid rgba(128, 128, 128, .35);
	border-left: 5px solid #2e7d32;
	border-radius: 8px;
	padding: 20px 28px;
	margin: 1.5em 0;
	color: inherit;
}
.pispace-toc__title { font-weight: 700; font-size: 1.15em; margin: 0 0 .7em; }
.pispace-toc ol { margin: 0; padding-left: 1.5em; }
.pispace-toc ol ol { margin-top: .3em; list-style-type: lower-alpha; }
.pispace-toc li { margin: .25em 0; }
.pispace-toc a { text-decoration: underline; }

.pispace-author-posts {
	background: #f3f7fb;
	border: 1px solid #d3dfeb;
	border-left: 5px solid #1a6a8f;
	border-radius: 8px;
	padding: 20px 28px;
	margin: 2em 0 1.5em;
	color: #1a1a1a;
}
.pispace-author-posts__title { font-weight: 700; font-size: 1.15em; margin: 0 0 .7em; }
.pispace-author-posts ul { margin: 0; padding-left: 1.3em; }
.pispace-author-posts li { margin: .3em 0; }
.pispace-author-posts li.pispace-author-posts__current { font-weight: 600; }
.pispace-author-posts a { text-decoration: underline; }

.pispace-editor-line { margin: 2em 0 1em; line-height: 1.7; }
.pispace-editor-line p { margin: 0 0 .4em; }
.pispace-editor-line p a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: #b5b5b5;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* Chữ luôn rõ nét, không bị theme làm mờ */
.pispace-summary,
.pispace-summary *,
.pispace-author-posts,
.pispace-author-posts *,
.pispace-author-posts li::marker {
	opacity: 1 !important;
	filter: none !important;
	text-shadow: none !important;
	-webkit-text-fill-color: currentColor;
	color: #1a1a1a !important;
}
/* Mục lục: chữ lấy màu của giao diện, link giữ màu link của giao diện. */
.pispace-toc,
.pispace-toc * {
	opacity: 1 !important;
	filter: none !important;
	text-shadow: none !important;
	-webkit-text-fill-color: currentColor;
}
.pispace-toc,
.pispace-toc__title,
.pispace-toc li,
.pispace-toc li::marker { color: inherit !important; }
.pispace-toc a { text-decoration: underline !important; }
.pispace-author-posts a { color: #0b5f84 !important; -webkit-text-fill-color: #0b5f84; text-decoration: underline !important; }
.pispace-summary strong, .pispace-toc__title, .pispace-author-posts__title { font-weight: 700 !important; }
.pispace-summary [data-rich-text-placeholder]::after,
.pispace-toc [data-rich-text-placeholder]::after,
.pispace-author-posts [data-rich-text-placeholder]::after { opacity: 1 !important; color: #6b5a2b !important; }
