.single-post {
	
	--bella-page: #ffffff;
	--bella-sunken: #f5f7fa;

	/* Not pure black on pure white — that pairing haloes and tires the eye over
	   a 2,000-word article. Near-black keeps the contrast without the glare. */
	--bella-ink: #16161a;
	--bella-body: #3f4045;
	--bella-muted: #6b6d72;

	--bella-accent: var(--theme-color-text_link2, #35b8c0);
	--bella-accent-dark: var(--theme-color-text_hover2, #27a7af);
	--bella-line: #e6eaee;
	--bella-surface: var(--bella-sunken);
	--bella-card: var(--bella-page);
	--bella-radius: 16px;
	--bella-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .12);
}

/* ------------------------------------------------------------- the canvas */

body.single-post,
.single-post .page_content_wrap,
.single-post .top_panel,
.single-post header {
	background-color: var(--bella-page);
}

/* The header bar is white and used to read against the grey page. With both
   white it needs a hairline, or the header dissolves into the article. */
.single-post .sc_layouts_row {
	border-bottom: 1px solid var(--bella-line);
}

.single-post .post_header_single .post_title,
.single-post .post_content_single :is(h2, h3, h4) {
	color: var(--bella-ink);
}

/* ------------------------------------------------------------------ header */

.single-post .post_header_single .post_title {
	letter-spacing: -.02em;
	line-height: 1.14;
	max-width: 20ch;
	max-width: min(100%, 22ch);
}

.single-post .post_header_single .post_meta_other {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
	padding-top: .35rem;
}

.single-post .post_header_single .post_author_avatar img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 2px solid var(--bella-card);
	box-shadow: 0 0 0 1px var(--bella-line);
}

.single-post .post_header_single .post_meta_item.post_date {
	color: var(--bella-muted);
}

/* --------------------------------------------------------------- body text */

.single-post .post_content_single {
	font-size: 1.0625rem;
	line-height: 1.85;
	color: var(--bella-body);
}

.single-post .post_content_single p {
	margin: 0 0 1.45em;
}

.single-post .post_content_single strong,
.single-post .post_content_single b {
	color: var(--bella-ink);
	font-weight: 600;
}

.single-post .post_content_single a:not(.wp-block-button__link) {
	color: var(--bella-accent-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in srgb, var(--bella-accent) 45%, transparent);
	transition: color .18s ease, text-decoration-color .18s ease;
}

.single-post .post_content_single a:not(.wp-block-button__link):hover {
	color: var(--bella-accent);
	text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------- headings */

.single-post .post_content_single :is(h2, h3, h4) {
	color: var(--bella-ink);
	letter-spacing: -.015em;
	scroll-margin-top: 110px;      /* clears the sticky header when jumping */
}

.single-post .post_content_single h2 {
	position: relative;
	font-size: clamp(1.5rem, 1.15rem + 1.1vw, 1.95rem);
	font-weight: 600;
	line-height: 1.28;
	margin: 2.6em 0 .75em;
	padding-top: 1.1em;
	border-top: 1px solid var(--bella-line);
}

/* Short accent rule sitting on the divider, so each section reads as a block */
.single-post .post_content_single h2::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: var(--bella-accent);
}

.single-post .post_content_single h2:first-child {
	margin-top: .6em;
}

.single-post .post_content_single h3 {
	font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem);
	font-weight: 600;
	line-height: 1.4;
	margin: 2.1em 0 .6em;
}

.single-post .post_content_single h4 {
	font-size: 1.08rem;
	font-weight: 600;
	margin: 1.8em 0 .5em;
}

/* ------------------------------------------------------------------ images */

.single-post .post_content_single :is(figure, .wp-block-image) {
	margin: 2.4em 0;
}

.single-post .post_content_single img {
	border-radius: var(--bella-radius);
	box-shadow: var(--bella-shadow);
	display: block;
	height: auto;
}

.single-post .post_content_single figcaption,
.single-post .post_content_single .wp-caption-text {
	margin-top: .9em;
	font-size: .875rem;
	line-height: 1.6;
	color: var(--bella-muted);
	text-align: center;
}

/* ------------------------------------------------------------------- lists */

.single-post .post_content_single :is(ul, ol) {
	margin: 0 0 1.6em;
	padding-left: 1.35em;
}

.single-post .post_content_single li {
	margin-bottom: .6em;
	padding-left: .25em;
}

.single-post .post_content_single li::marker {
	color: var(--bella-accent);
	font-weight: 600;
}

/* ------------------------------------------------------------------ tables */

/* 21 posts carry price tables. The wrapper is added by single-post.js so a
   wide table scrolls on its own instead of stretching the page. */
.single-post .bella-table-scroll {
	overflow-x: auto;
	margin: 2.2em 0;
	border: 1px solid var(--bella-line);
	border-radius: var(--bella-radius);
	background: var(--bella-card);
	-webkit-overflow-scrolling: touch;
}

.single-post .bella-table-scroll > table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: .96rem;
}

.single-post .bella-table-scroll :is(th, td) {
	padding: .95rem 1.15rem;
	border: 0;
	border-bottom: 1px solid var(--bella-line);
	text-align: left;
	vertical-align: top;
}

.single-post .bella-table-scroll th,
.single-post .bella-table-scroll tr:first-child td strong {
	background: color-mix(in srgb, var(--bella-accent) 9%, transparent);
	color: var(--bella-ink);
	font-weight: 600;
	white-space: nowrap;
}

.single-post .bella-table-scroll tr:last-child :is(th, td) {
	border-bottom: 0;
}

.single-post .bella-table-scroll tbody tr:hover td {
	background: var(--bella-surface);
}

/* ---------------------------------------------------------------- callouts */

/* [symple_box] left over from the old theme, rendered by the legacy-shortcodes
   mu-plugin. Restyled here to sit with the rest of the page. */
.single-post .legacy-symple-box {
	background: color-mix(in srgb, var(--bella-accent) 7%, transparent) !important;
	border: 1px solid color-mix(in srgb, var(--bella-accent) 22%, transparent) !important;
	border-left: 3px solid var(--bella-accent) !important;
	border-radius: var(--bella-radius) !important;
	padding: 1.35rem 1.6rem !important;
	margin: 2.1em 0 !important;
}

.single-post .legacy-symple-box > :last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------- reading progress bar */

.bella-progress {
	position: fixed;
	inset: 0 auto auto 0;
	width: 100%;
	height: 3px;
	background: transparent;
	z-index: 100000;
	pointer-events: none;
}

.bella-progress__fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--theme-color-text_link2, #35b8c0), var(--theme-color-text_link, #6f51c7));
	transition: width .1s linear;
}

/* ---------------------------------------------------- table of contents */

.bella-toc {
	margin: 0 0 2.6em;
	padding: 1.4rem 1.6rem;
	background: var(--bella-surface);
	border: 1px solid var(--bella-line);
	border-radius: var(--bella-radius);
}

.bella-toc__title {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin: 0 0 .9rem;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--bella-muted);
}

.bella-toc__title::before {
	content: "";
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--bella-accent);
}

.single-post .post_content_single .bella-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bella-toc;
}

.single-post .post_content_single .bella-toc li {
	margin: 0;
	padding: 0;
}

/* Only h2 entries are numbered, so only they advance the counter — otherwise
   the visible numbers skip (1, 2, 5, 8...) wherever an h3 sits between them. */
.single-post .post_content_single .bella-toc li:not(.bella-toc__item--sub) {
	counter-increment: bella-toc;
}

.single-post .post_content_single .bella-toc .bella-toc__item--sub {
	padding-left: 1.4rem;
}

.single-post .post_content_single .bella-toc .bella-toc__item--sub > a {
	font-size: .94rem;
	color: var(--bella-body);
	opacity: .85;
}

.single-post .post_content_single .bella-toc a,
.bella-toc a {
	display: block;
	text-decoration: none;
	padding: .4rem 0;
	font-size: .97rem;
	line-height: 1.5;
	color: var(--bella-body);
	text-decoration: none;
	border: 0;
	transition: color .18s ease;
}

.single-post .post_content_single .bella-toc li:not(.bella-toc__item--sub) > a::before {
	content: counter(bella-toc) ". ";
	color: var(--bella-accent);
	font-weight: 600;
}

.single-post .post_content_single .bella-toc a:hover,
.single-post .post_content_single .bella-toc a.is-active {
	color: var(--bella-accent-dark);
}

/* ----------------------------------------------------------------- sidebar */

.single-post .sidebar .sidebar_inner {
	position: sticky;
	top: 110px;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.single-post .sidebar .widget {
	background: var(--bella-sunken);
	border: 1px solid var(--bella-line);
	border-radius: 18px;
	padding: 1.6rem 1.5rem;
	margin-bottom: 1.5rem;
}

.single-post .sidebar .widget::before,
.single-post .sidebar .widget::after {
	display: none;                  /* theme draws separators we don't want */
}

.single-post .sidebar .widget_title {
	margin: 0 0 1.1rem;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--bella-ink);
}

.single-post .sidebar .widget_categories ul {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

/* Markup is `<li><a>Name</a> (20)</li>` — the count is a bare text node, so a
   block-level link pushes it onto its own line. Flex keeps them on one row. */
.single-post .sidebar .widget_categories li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none !important;
	border-bottom: 1px solid var(--bella-line);
	color: var(--bella-muted);
	font-size: .9rem;
}

.single-post .sidebar .widget_categories li:last-child {
	border-bottom: 0;
}

/* The theme hangs its 6px round bullet off the LINK, not the list item
   (.widget_categories a::before, absolutely positioned at left:-1.1em), so
   clearing the li pseudo-elements alone leaves the dots on screen. */
.single-post .sidebar .widget_categories li::before,
.single-post .sidebar .widget_categories li::marker,
.single-post .sidebar .widget_categories a::before,
.single-post .sidebar .widget_categories a::after {
	content: none !important;
	display: none !important;
}

.single-post .sidebar .widget_categories a {
	flex: 1 1 auto;
	padding: .62rem 0;
	font-size: 1rem;
	color: var(--bella-body);
	text-decoration: none;
	transition: color .18s ease, padding-left .18s ease;
}

.single-post .sidebar .widget_categories a:hover {
	color: var(--bella-accent-dark);
	padding-left: .35rem;
}

.single-post .sidebar .search-field {
	border-radius: 999px;
	border: 1px solid var(--bella-line);
	background: var(--bella-page);
	padding-left: 1.1rem;
}

.single-post .sidebar .search-field:focus {
	border-color: var(--bella-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bella-accent) 18%, transparent);
	outline: none;
}

/* ---------------------------------------------------------- related posts */

.single-post .related_wrap .related_item {
	background: var(--bella-sunken);
	border: 1px solid var(--bella-line);
	border-radius: 18px;
	padding: 1.5rem;
	height: 100%;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.single-post .related_wrap .related_item:hover {
	transform: translateY(-4px);
	background: var(--bella-page);
	border-color: transparent;
	box-shadow: var(--bella-shadow);
}

.single-post .related_wrap .post_title {
	margin: .4rem 0 0;
	line-height: 1.4;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1023px) {
	.single-post .sidebar .sidebar_inner {
		position: static;
	}
}

@media (max-width: 767px) {
	.single-post .post_content_single {
		font-size: 1rem;
	}

	.single-post .post_content_single h2 {
		margin-top: 2em;
	}

	.bella-toc {
		padding: 1.15rem 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-post .related_wrap .related_item,
	.bella-progress__fill {
		transition: none;
	}
}

/* Legacy Bella posts */

.single-post .post_content :is(h1, h2, h3, h4, h5, h6)[style*="transform"] {
	text-transform: none !important;
}

.single-post .post_content :is(h1, h2, h3, h4, h5, h6) :is(mark, span, strong, em, a[style]) {
	color: inherit !important;
	background-color: transparent !important;
}
