/* Doctor247 Elementor Widgets — blog / archive / single-post CSS.
   Same move as doctor247-widgets.css: was printed inline in the body. */

/* ══════ archive-assets.php ══════ */
.d247-archive {
	--d247ar-navy: #253e5d;
	--d247ar-navy-dark: #192d42;
	--d247ar-green: #80c422;
	--d247ar-green-dark: #2e6d1f;
	--d247ar-sky: #59b7e0;
	--d247ar-sky-dark: #2d7fa6;
	--d247ar-sky-bg: #e8f6fd;
	--d247ar-text: #3d4f63;
	--d247ar-muted: #6b7a8a;
	--d247ar-light: #8598ab;
	--d247ar-border: #e5edf2;
	--d247ar-bg-soft: #f4f8fb;

	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--d247ar-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.d247-archive * { box-sizing: border-box; }

/* Header */
.d247-ar-header {
	background: var(--d247ar-bg-soft);
	padding: 60px 28px 56px;
	border-bottom: 1px solid var(--d247ar-border);
}
.d247-ar-header-inner {
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
}
.d247-ar-crumbs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	font-size: 13px;
	color: var(--d247ar-muted);
}
.d247-ar-crumbs li { display: flex; align-items: center; gap: 10px; }
.d247-ar-crumbs li + li::before {
	content: '';
	width: 5px; height: 5px;
	border-right: 1.5px solid var(--d247ar-light);
	border-bottom: 1.5px solid var(--d247ar-light);
	transform: rotate(-45deg);
}
.d247-ar-crumbs a {
	color: inherit;
	text-decoration: none;
	transition: color .15s;
}
.d247-ar-crumbs a:hover { color: var(--d247ar-sky-dark); }
.d247-ar-crumbs li:last-child { color: var(--d247ar-navy); font-weight: 600; }

.d247-ar-taglabel {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: "Sora", "Inter", sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--d247ar-sky);
	margin-bottom: 14px;
}
.d247-ar-taglabel::before {
	content: '';
	width: 22px; height: 2px;
	background: var(--d247ar-green);
	display: inline-block;
}
.d247-ar-title {
	font-family: "Merriweather", Georgia, serif;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 900;
	line-height: 1.2;
	color: var(--d247ar-navy);
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}
.d247-ar-desc {
	font-size: 1.05rem;
	color: var(--d247ar-text);
	line-height: 1.65;
	max-width: 640px;
	margin: 0 auto;
}

/* Filter Bar */
.d247-ar-filters {
	padding: 24px 28px;
	border-bottom: 1px solid var(--d247ar-border);
	background: #fff;
}
.d247-ar-filters-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}
.d247-ar-filter-btn {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	background: #fff;
	color: var(--d247ar-navy);
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--d247ar-border);
	border-radius: 50px;
	text-decoration: none;
	transition: all .18s;
	white-space: nowrap;
}
.d247-ar-filter-btn:hover:not(.is-active) {
	background: var(--d247ar-bg-soft);
	border-color: var(--d247ar-navy);
}
.d247-ar-filter-btn.is-active {
	background: var(--d247ar-navy);
	color: #fff;
	border-color: var(--d247ar-navy);
}

/* Body */
.d247-ar-body {
	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 28px 80px;
}

/* Grid */
.d247-ar-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* Card */
.d247-ar-card {
	background: #fff;
	border: 1px solid var(--d247ar-border);
	border-radius: 20px;
	overflow: hidden;
	transition: transform .28s, box-shadow .28s;
	display: flex;
	flex-direction: column;
}
.d247-ar-card:hover {
	transform: translateY(-4px);
}

.d247-ar-image-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
	margin: 14px 14px 0;
}
.d247-ar-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-color: var(--d247ar-sky-bg);
	border-radius: 12px;
	transition: transform .5s ease;
}
.d247-ar-card:hover .d247-ar-image {
	transform: scale(1.04);
}
.d247-ar-image.is-placeholder {
	background: linear-gradient(135deg, var(--d247ar-sky-bg) 0%, var(--d247ar-bg-soft) 100%);
}
.d247-ar-badge {
	position: absolute;
	top: 14px; left: 14px;
	padding: 6px 14px;
	background: var(--d247ar-green-dark);
	color: #fff;
	font-family: "Sora", "Inter", sans-serif;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: 50px;
	z-index: 2;
}

.d247-ar-card-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Meta */
.d247-ar-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--d247ar-muted);
	margin-bottom: 14px;
	font-family: "Inter", sans-serif;
}
.d247-ar-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.d247-ar-meta-dot {
	display: inline-block;
	width: 6px; height: 6px;
	background: var(--d247ar-green);
	border-radius: 50%;
	flex-shrink: 0;
}
.d247-ar-meta svg {
	color: var(--d247ar-light);
	flex-shrink: 0;
}

/* Card Title */
.d247-ar-card-title {
	font-family: "Merriweather", Georgia, serif;
	font-size: 1.3rem;
	font-weight: 900;
	line-height: 1.3;
	color: var(--d247ar-navy);
	margin: 0 0 12px;
}
.d247-ar-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color .15s;
}
.d247-ar-card-title a:hover {
	color: var(--d247ar-green-dark);
}

.d247-ar-excerpt {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--d247ar-text);
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.d247-ar-readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--d247ar-green-dark);
	text-decoration: none;
	margin-top: auto;
	transition: gap .22s, color .18s;
}
.d247-ar-readmore:hover {
	gap: 10px;
	color: var(--d247ar-navy);
}
.d247-ar-readmore svg { flex-shrink: 0; }

/* Pagination */
.d247-ar-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
	flex-wrap: wrap;
}
.d247-ar-page-wrap { display: inline-flex; }
.d247-ar-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	background: #fff;
	color: var(--d247ar-navy);
	border: 1px solid var(--d247ar-border);
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all .18s;
}
.d247-ar-page:hover:not(.is-current) {
	background: var(--d247ar-bg-soft);
	border-color: var(--d247ar-navy);
}
.d247-ar-page.is-current {
	background: var(--d247ar-navy);
	color: #fff;
	border-color: var(--d247ar-navy);
	cursor: default;
}
.d247-ar-page-prev, .d247-ar-page-next {
	font-weight: 700;
}
.d247-ar-page.dots {
	border: none;
	background: transparent;
	color: var(--d247ar-light);
	cursor: default;
}

/* Empty state */
.d247-ar-empty {
	text-align: center;
	padding: 80px 20px;
	color: var(--d247ar-muted);
}
.d247-ar-empty svg {
	color: var(--d247ar-light);
	margin-bottom: 16px;
	opacity: 0.5;
}
.d247-ar-empty p {
	font-size: 1.05rem;
	font-family: "Inter", sans-serif;
	margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
	.d247-ar-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
	.d247-ar-grid { grid-template-columns: 1fr !important; }
	.d247-ar-header { padding: 44px 20px 40px; }
	.d247-ar-body { padding: 40px 18px 60px; }
	.d247-ar-filters { padding: 18px 20px; }
	.d247-ar-filters-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
	.d247-ar-filter-btn { flex-shrink: 0; }
	.d247-ar-card-title { font-size: 1.15rem; }
}

/* ══════ single-post-assets.php ══════ */
/* ═══════════════════════════════════════════════════════════════════
   D247 SINGLE POST WIDGET — scoped styles
   All selectors prefixed with .d247-single-post to avoid theme conflicts
   ═══════════════════════════════════════════════════════════════════ */

.d247-single-post {
	--d247sp-navy: #253e5d;
	--d247sp-navy-dark: #192d42;
	--d247sp-green: #80c422;
	--d247sp-green-light: #a3e132;
	--d247sp-green-dark: #2e6d1f;
	--d247sp-sky: #59b7e0;
	--d247sp-sky-dark: #2d7fa6;
	--d247sp-sky-bg: #e8f6fd;
	--d247sp-text: #3d4f63;
	--d247sp-muted: #6b7a8a;
	--d247sp-light: #8598ab;
	--d247sp-border: #e5edf2;
	--d247sp-bg-soft: #f4f8fb;

	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--d247sp-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	position: relative;
}
.d247-single-post * { box-sizing: border-box; }
.d247-single-post img { max-width: 100%; height: auto; display: block; }

/* Progress bar */
.d247-sp-progress-wrap {
	position: fixed; top: 0; left: 0; right: 0;
	height: 3px; z-index: 99;
	background: transparent;
	pointer-events: none;
}
.d247-sp-progress {
	width: 0%; height: 100%;
	background: linear-gradient(90deg, var(--d247sp-green) 0%, var(--d247sp-sky) 100%);
	box-shadow: 0 0 8px rgba(128,196,34,0.5);
	transition: width 0.1s linear;
}

/* Breadcrumbs */
.d247-sp-crumbs-bar {
	background: var(--d247sp-bg-soft);
	border-bottom: 1px solid var(--d247sp-border);
	border-top: 1px solid var(--d247sp-border);
	padding: 14px 28px;
	margin: 0 -15px 0 -15px;
}
.d247-sp-crumbs {
	max-width: 1280px;
	margin: 0 auto;
	display: flex; align-items: center;
	gap: 10px; flex-wrap: wrap;
	font-size: 13px;
	color: var(--d247sp-muted);
	list-style: none;
	padding: 0;
}
.d247-sp-crumbs li { display: flex; align-items: center; gap: 10px; margin: 0; }
.d247-sp-crumbs li + li::before {
	content: '';
	width: 5px; height: 5px;
	border-right: 1.5px solid var(--d247sp-light);
	border-bottom: 1.5px solid var(--d247sp-light);
	transform: rotate(-45deg);
}
.d247-sp-crumbs a { color: inherit; text-decoration: none; transition: color .15s; }
.d247-sp-crumbs a:hover { color: var(--d247sp-sky-dark); }
.d247-sp-crumbs li:last-child { color: var(--d247sp-navy); font-weight: 600; }

/* Header */
.d247-sp-header {
	max-width: 860px;
	margin: 56px auto 40px;
	padding: 0 28px;
	text-align: center;
}
.d247-sp-cat {
	display: inline-block;
	padding: 6px 16px;
	background: var(--d247sp-green-dark);
	color: #fff;
	font-size: 11px; font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: 50px;
	margin-bottom: 22px;
	text-decoration: none;
	transition: transform .18s;
}
.d247-sp-cat:hover { transform: translateY(-1px); color: #fff; }
.d247-sp-title {
	font-family: "Merriweather", Georgia, serif;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 900; line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--d247sp-navy);
	margin: 0 0 20px 0;
}
.d247-sp-subtitle {
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.6;
	color: var(--d247sp-text);
	margin: 0 auto 32px;
	max-width: 680px;
}

/* Meta */
.d247-sp-meta {
	display: flex; align-items: center; justify-content: center;
	flex-wrap: wrap; gap: 14px 22px;
	font-size: 13.5px;
	color: var(--d247sp-muted);
}
.d247-sp-meta-author {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 500;
}
.d247-sp-meta-avatar {
	width: 32px; height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--d247sp-sky) 0%, var(--d247sp-sky-dark) 100%);
	color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 800;
	flex-shrink: 0;
	object-fit: cover;
}
.d247-sp-meta-author-name {
	color: var(--d247sp-navy);
	font-weight: 700;
	text-decoration: none;
	transition: color .15s;
}
.d247-sp-meta-author-name:hover { color: var(--d247sp-green-dark); }
.d247-sp-meta-sep { color: var(--d247sp-light); }
.d247-sp-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.d247-sp-meta-item svg { color: var(--d247sp-light); flex-shrink: 0; }
.d247-sp-meta-updated {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 10px;
	background: var(--d247sp-sky-bg);
	color: var(--d247sp-sky-dark);
	border-radius: 50px;
	font-size: 11.5px; font-weight: 600;
}

/* Featured image */
.d247-sp-featured-wrap {
	max-width: 1100px;
	margin: 0 auto 48px;
	padding: 0 28px;
}
.d247-sp-featured {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	object-fit: cover;
	box-shadow: 0 20px 50px -15px rgba(37,62,93,0.12);
}
.d247-sp-featured.is-placeholder {
	background: linear-gradient(135deg, var(--d247sp-sky-bg) 0%, var(--d247sp-bg-soft) 50%, #e3efd8 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--d247sp-sky-dark);
	opacity: 0.7;
}

/* Layout: TOC | main | share */
.d247-sp-layout {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 28px 80px;
	display: grid;
	grid-template-columns: 260px 1fr 100px;
	gap: 48px;
	align-items: start;
}
.d247-sp-layout:not(:has(.d247-sp-toc-wrap)) { grid-template-columns: 1fr 100px; }
.d247-sp-layout:not(:has(.d247-sp-share-sticky)) { grid-template-columns: 260px 1fr; }
.d247-sp-layout:not(:has(.d247-sp-toc-wrap)):not(:has(.d247-sp-share-sticky)) {
	grid-template-columns: 1fr;
	max-width: 820px;
}

@media (max-width: 1100px) {
	.d247-sp-layout { grid-template-columns: 240px 1fr !important; gap: 32px; }
	.d247-sp-share-sticky { display: none !important; }
}
@media (max-width: 820px) {
	.d247-sp-layout { grid-template-columns: 1fr !important; gap: 0; }
	.d247-sp-toc-wrap { position: static !important; margin-bottom: 32px; }
}

/* TOC */
.d247-sp-toc-wrap {
	position: sticky;
	top: 96px;
	align-self: start;
}
.d247-sp-toc-box {
	background: var(--d247sp-bg-soft);
	border: 1px solid var(--d247sp-border);
	border-radius: 16px;
	padding: 24px 22px;
}
.d247-sp-toc-label {
	display: block;
	font-size: 11px; font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--d247sp-sky-dark);
	margin-bottom: 14px;
}
.d247-sp-toc-list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 8px;
	counter-reset: d247toc;
}
.d247-sp-toc-list li { margin: 0; }
.d247-sp-toc-list a {
	display: block;
	padding: 7px 12px;
	border-left: 2px solid transparent;
	font-size: 13.5px;
	color: var(--d247sp-text);
	line-height: 1.4;
	border-radius: 0 6px 6px 0;
	transition: all 0.18s;
	text-decoration: none;
}
.d247-sp-toc-list a:hover,
.d247-sp-toc-list a.is-active {
	background: #fff;
	border-left-color: var(--d247sp-green);
	color: var(--d247sp-navy);
	font-weight: 600;
}

/* Main prose */
.d247-sp-main {
	max-width: 720px;
	width: 100%;
	margin: 0 auto;
}
.d247-sp-prose {
	font-family: "Merriweather", Georgia, "Times New Roman", serif;
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--d247sp-text);
}
.d247-sp-prose > *:first-child { margin-top: 0; }
.d247-sp-prose > p:first-of-type {
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--d247sp-navy);
	font-weight: 500;
	margin-bottom: 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--d247sp-border);
}
.d247-sp-prose p { margin: 0 0 1.5em; }
.d247-sp-prose h2 {
	font-family: "Merriweather", Georgia, serif;
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	font-weight: 900;
	line-height: 1.3;
	color: var(--d247sp-navy);
	margin: 2.2em 0 0.7em;
	letter-spacing: -0.01em;
	padding-top: 1rem;
	scroll-margin-top: 80px;
}
.d247-sp-prose h2::before {
	content: '';
	display: block;
	width: 48px; height: 3px;
	background: var(--d247sp-green);
	margin-bottom: 18px;
	border-radius: 2px;
}
.d247-sp-prose h3 {
	font-family: "Inter", sans-serif;
	font-size: 1.2rem; font-weight: 700;
	color: var(--d247sp-navy);
	margin: 1.8em 0 0.5em;
	line-height: 1.4;
}
.d247-sp-prose h4 {
	font-family: "Inter", sans-serif;
	font-size: 1.05rem; font-weight: 700;
	color: var(--d247sp-navy);
	margin: 1.6em 0 0.4em;
}
.d247-sp-prose a {
	color: var(--d247sp-green-dark);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	font-weight: 500;
	transition: color .15s;
}
.d247-sp-prose a:hover { color: var(--d247sp-navy); }
.d247-sp-prose strong { color: var(--d247sp-navy); font-weight: 700; }
.d247-sp-prose em { font-style: italic; }
.d247-sp-prose ul, .d247-sp-prose ol {
	margin: 0 0 1.5em; padding-left: 1.25em;
}
.d247-sp-prose li { margin-bottom: 0.5em; padding-left: 0.4em; }
.d247-sp-prose ul li::marker { color: var(--d247sp-green); font-size: 1.2em; }
.d247-sp-prose ol li::marker { color: var(--d247sp-sky-dark); font-weight: 700; }
.d247-sp-prose blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	background: var(--d247sp-sky-bg);
	border-left: 4px solid var(--d247sp-sky);
	border-radius: 0 12px 12px 0;
	font-style: italic;
	font-size: 1.05rem;
	color: var(--d247sp-navy);
	line-height: 1.7;
	position: relative;
}
.d247-sp-prose blockquote::before {
	content: '"';
	font-family: Georgia, serif;
	font-size: 3rem; line-height: 1;
	color: var(--d247sp-sky);
	position: absolute; left: 16px; top: 4px;
	opacity: 0.4; font-style: normal;
}
.d247-sp-prose blockquote p:last-child { margin-bottom: 0; }
.d247-sp-prose img {
	border-radius: 12px;
	margin: 2em 0;
}
.d247-sp-prose figure { margin: 2em 0; }
.d247-sp-prose figcaption {
	text-align: center;
	font-size: 13px;
	color: var(--d247sp-muted);
	margin-top: 12px;
	font-family: "Inter", sans-serif;
	font-style: italic;
}

/* Callouts */
.d247-sp-prose .d247-sp-callout {
	margin: 2em 0;
	padding: 22px 24px;
	border-radius: 14px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	font-family: "Inter", sans-serif;
	font-size: 0.98rem;
	line-height: 1.65;
}
.d247-sp-prose .callout-icon {
	flex-shrink: 0;
	width: 36px; height: 36px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.d247-sp-prose .callout-content { flex: 1; }
.d247-sp-prose .callout-title {
	font-weight: 800;
	font-size: 0.95rem;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.d247-sp-prose .d247-sp-callout p {
	margin-bottom: 0.6em;
	font-family: "Inter", sans-serif;
	font-size: 0.98rem;
	color: inherit;
}
.d247-sp-prose .d247-sp-callout p:last-child { margin-bottom: 0; }

.d247-sp-prose .callout-info {
	background: var(--d247sp-sky-bg);
	border: 1px solid #bde0f0;
	color: var(--d247sp-navy);
}
.d247-sp-prose .callout-info .callout-icon { background: var(--d247sp-sky); }
.d247-sp-prose .callout-info .callout-title { color: var(--d247sp-navy); }

.d247-sp-prose .callout-warning {
	background: #fff8e1;
	border: 1px solid #ffdda6;
	color: #5c3f00;
}
.d247-sp-prose .callout-warning .callout-icon { background: #d4a017; }
.d247-sp-prose .callout-warning .callout-title { color: #5c3f00; }

.d247-sp-prose .callout-tip {
	background: #eef9e0;
	border: 1px solid #cde9a3;
	color: #2c4a0f;
}
.d247-sp-prose .callout-tip .callout-icon { background: var(--d247sp-green); }
.d247-sp-prose .callout-tip .callout-title { color: #2c4a0f; }

/* Key Takeaways */
.d247-sp-prose .d247-sp-takeaways {
	margin: 2.5em 0;
	padding: 28px 30px;
	background: linear-gradient(135deg, #f0f8fc 0%, #eef9e0 100%);
	border: 1px solid #cce4f0;
	border-radius: 18px;
	font-family: "Inter", sans-serif;
}
.d247-sp-prose .takeaways-label {
	font-size: 11px; font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--d247sp-green-dark);
	margin-bottom: 14px;
	display: flex; align-items: center; gap: 8px;
}
.d247-sp-prose .d247-sp-takeaways ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
.d247-sp-prose .d247-sp-takeaways li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 10px;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--d247sp-navy);
	padding-left: 0;
	font-family: "Inter", sans-serif;
}
.d247-sp-prose .d247-sp-takeaways li::marker { content: ''; }
.d247-sp-prose .d247-sp-takeaways li::before {
	content: '';
	flex-shrink: 0;
	width: 20px; height: 20px;
	background: var(--d247sp-green);
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	margin-top: 4px;
}

/* Dividers */
.d247-sp-prose .d247-sp-hr {
	border: 0;
	height: 1px;
	background: var(--d247sp-border);
	margin: 3em 0;
}
.d247-sp-prose .d247-sp-hr-dots {
	text-align: center;
	margin: 3em 0;
	color: var(--d247sp-green);
	letter-spacing: 0.5em;
	font-size: 1.3rem;
}
.d247-sp-prose .d247-sp-hr-space {
	height: 48px;
}

/* Tags */
.d247-sp-tags-row {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--d247sp-border);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.d247-sp-tags-label {
	font-size: 13px; font-weight: 700;
	color: var(--d247sp-muted);
	margin-right: 6px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.d247-sp-tag {
	display: inline-block;
	padding: 6px 14px;
	background: var(--d247sp-bg-soft);
	border: 1px solid var(--d247sp-border);
	color: var(--d247sp-navy);
	font-size: 13px; font-weight: 600;
	border-radius: 50px;
	text-decoration: none;
	transition: all .15s;
}

/* Share inline */
.d247-sp-share-inline {
	margin-top: 40px;
	padding: 24px 0;
	border-top: 1px solid var(--d247sp-border);
	border-bottom: 1px solid var(--d247sp-border);
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.d247-sp-share-label {
	font-size: 13px; font-weight: 700;
	color: var(--d247sp-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.d247-sp-share-group {
	display: flex; gap: 10px; flex-wrap: wrap;
}

.d247-sp-share-btn {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--d247sp-bg-soft);
	color: var(--d247sp-navy);
	display: inline-flex; align-items: center; justify-content: center;
	transition: all .2s;
	border: 1px solid var(--d247sp-border);
	cursor: pointer;
	text-decoration: none;
}
.d247-sp-share-btn:hover {
	transform: translateY(-2px);
	background: var(--d247sp-navy);
	color: #fff;
	border-color: var(--d247sp-navy);
}

/* Sticky share */
.d247-sp-share-sticky {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}
.d247-sp-share-vert-label {
	font-size: 10px; font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--d247sp-muted);
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	margin-bottom: 12px;
}

/* Author bio */
.d247-sp-author {
	max-width: 860px;
	margin: 0 auto 80px;
	padding: 36px 32px;
	background: var(--d247sp-bg-soft);
	border: 1px solid var(--d247sp-border);
	border-radius: 20px;
	display: flex;
	gap: 28px;
	align-items: center;
}
.d247-sp-author-avatar {
	flex-shrink: 0;
	width: 96px; height: 96px;
	border-radius: 50%;
	border: 4px solid #fff;
	box-shadow: 0 10px 24px -6px rgba(37,62,93,0.15);
	object-fit: cover;
}
.d247-sp-author-avatar-fallback {
	background: linear-gradient(135deg, var(--d247sp-sky) 0%, var(--d247sp-sky-dark) 100%);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 32px; font-weight: 800;
}
.d247-sp-author-content { flex: 1; }
.d247-sp-author-label {
	font-size: 11px; font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--d247sp-green-dark);
	margin-bottom: 6px;
}
.d247-sp-author-name {
	font-family: "Merriweather", Georgia, serif;
	font-size: 1.4rem; font-weight: 800;
	color: var(--d247sp-navy);
	margin-bottom: 4px;
}
.d247-sp-author-role {
	font-size: 13.5px;
	color: var(--d247sp-muted);
	font-weight: 600;
	margin-bottom: 12px;
}
.d247-sp-author-bio {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--d247sp-text);
	margin: 0;
}
@media (max-width: 640px) {
	.d247-sp-author { flex-direction: column; text-align: center; padding: 28px 22px; }
}

/* Related posts */
.d247-sp-related {
	padding: 80px 28px;
	border-top: 1px solid var(--d247sp-border);
	border-bottom: 1px solid var(--d247sp-border);
	margin: 0 -15px;
}
.d247-sp-related-header {
	text-align: center;
	margin-bottom: 48px;
}
.d247-sp-related-tag {
	display: inline-block;
	font-size: 11px; font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--d247sp-sky-dark);
	margin-bottom: 10px;
}
.d247-sp-related-heading {
	font-family: "Merriweather", Georgia, serif;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	color: var(--d247sp-navy);
	font-weight: 900;
	margin: 0;
}
.d247-sp-rel-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.d247-sp-rel-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
@media (max-width: 900px) { .d247-sp-rel-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px) { .d247-sp-rel-grid { grid-template-columns: 1fr !important; } }

.d247-sp-rel-card {
	background: #fff;
	border: 1px solid var(--d247sp-border);
	border-radius: 18px;
	padding: 14px;
	transition: all .22s;
	display: flex; flex-direction: column;
}
.d247-sp-rel-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -12px rgba(37,62,93,0.15);
	border-color: var(--d247sp-green);
}
.d247-sp-rel-image-wrap {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	margin-bottom: 16px;
	text-decoration: none;
}
.d247-sp-rel-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: var(--d247sp-sky-bg);
}
.d247-sp-rel-image.is-placeholder {
	background: linear-gradient(135deg, var(--d247sp-sky-bg) 0%, var(--d247sp-bg-soft) 100%);
}
.d247-sp-rel-pill {
	position: absolute;
	top: 12px; left: 12px;
	padding: 4px 12px;
	background: var(--d247sp-green-dark);
	color: #fff;
	font-size: 10px; font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 50px;
}
.d247-sp-rel-body {
	padding: 4px 8px 12px;
	display: flex; flex-direction: column; flex: 1;
}
.d247-sp-rel-meta {
	display: flex; gap: 12px;
	font-size: 12px;
	color: var(--d247sp-muted);
	font-weight: 500;
	margin-bottom: 10px;
}
.d247-sp-rel-title {
	font-family: "Merriweather", Georgia, serif;
	font-size: 1.1rem; font-weight: 900;
	color: var(--d247sp-navy);
	line-height: 1.35;
	margin: 0 0 12px;
}
.d247-sp-rel-title a {
	color: inherit;
	text-decoration: none;
	transition: color .15s;
}
.d247-sp-rel-title a:hover { color: var(--d247sp-green-dark); }
.d247-sp-rel-excerpt {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--d247sp-text);
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.d247-sp-rel-more {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 700;
	color: var(--d247sp-green-dark);
	margin-top: auto;
	transition: gap .2s;
	text-decoration: none;
}
.d247-sp-rel-more:hover { gap: 10px; color: var(--d247sp-navy); }

/* Newsletter */
.d247-sp-newsletter {
	padding: 80px 28px;
	background: #fff;
}
.d247-sp-nl-inner {
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
}
.d247-sp-nl-icon {
	width: 60px; height: 60px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--d247sp-sky) 0%, var(--d247sp-sky-dark) 100%);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}
.d247-sp-nl-heading {
	font-family: "Merriweather", Georgia, serif;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	color: var(--d247sp-navy);
	font-weight: 900;
	margin: 0 0 12px;
}
.d247-sp-nl-desc {
	font-size: 1rem;
	color: var(--d247sp-text);
	margin: 0 0 24px;
	line-height: 1.65;
}
.d247-sp-nl-form {
	display: flex; gap: 10px;
	flex-wrap: wrap;
	max-width: 460px;
	margin: 0 auto;
}
.d247-sp-nl-input {
	flex: 1;
	min-width: 200px;
	padding: 14px 20px;
	border: 1.5px solid var(--d247sp-border);
	border-radius: 50px;
	font-size: 14.5px;
	color: var(--d247sp-navy);
	outline: none;
	transition: all .2s;
	font-family: inherit;
}
.d247-sp-nl-input:focus {
	border-color: var(--d247sp-green);
	box-shadow: 0 0 0 3px rgba(128,196,34,0.15);
}
.d247-sp-nl-btn {
	padding: 14px 26px;
	background: linear-gradient(135deg, var(--d247sp-green-light) 0%, var(--d247sp-green) 100%);
	color: #1c2e0d;
	border: none;
	border-radius: 50px;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	transition: all .22s;
	font-family: inherit;
}
.d247-sp-nl-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px -6px rgba(128,196,34,0.5);
}

/* Final CTA */
.d247-sp-cta {
	padding: 90px 28px;
	text-align: center;
	color: #fff;
	position: relative;
	overflow: hidden;
	margin: 0 -15px;
	background: linear-gradient(135deg, var(--d247sp-navy) 0%, var(--d247sp-navy-dark) 100%);
}
.d247-sp-cta-inner {
	max-width: 720px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.d247-sp-cta h2 {
	font-family: "Merriweather", Georgia, serif;
	color: #fff;
	font-size: clamp(2rem, 3.5vw, 2.5rem);
	font-weight: 900;
	margin: 0 0 14px;
}
.d247-sp-cta p {
	color: rgba(255,255,255,0.75);
	font-size: 1.02rem;
	margin: 0 0 30px;
}
.d247-sp-cta-btns {
	display: flex; flex-wrap: wrap;
	gap: 14px; justify-content: center;
}
.d247-sp-cta-btn-primary, .d247-sp-cta-btn-outline {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 14.5px;
	transition: all .22s;
	border: 1.5px solid transparent;
	text-decoration: none;
	white-space: nowrap;
}
.d247-sp-cta-btn-primary {
	background: linear-gradient(135deg, var(--d247sp-green-light) 0%, var(--d247sp-green) 100%);
	color: #1c2e0d;
	box-shadow: 0 8px 20px -6px rgba(128,196,34,0.5);
}
.d247-sp-cta-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px -6px rgba(128,196,34,0.6);
	color: #1c2e0d;
}
.d247-sp-cta-btn-outline {
	background: rgba(255,255,255,0.06);
	color: #fff;
	border-color: rgba(255,255,255,0.25);
}
.d247-sp-cta-btn-outline:hover {
	background: rgba(255,255,255,0.12);
	border-color: var(--d247sp-sky);
	color: #fff;
	transform: translateY(-2px);
}

/* Back to top */
.d247-sp-totop {
	position: fixed;
	bottom: 24px; right: 24px;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--d247sp-navy);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: all .3s;
	z-index: 90;
	box-shadow: 0 10px 24px -6px rgba(37,62,93,0.3);
	cursor: pointer;
	border: none;
}
.d247-sp-totop.is-visible {
	opacity: 1;
	pointer-events: auto;
}
.d247-sp-totop:hover {
	transform: translateY(-3px);
	background: var(--d247sp-green-dark);
}

/* Responsive refinements */
@media (max-width: 640px) {
	.d247-sp-header { padding: 40px 20px 32px; margin: 0 auto 32px; }
	.d247-sp-featured-wrap { padding: 0 18px; margin-bottom: 36px; }
	.d247-sp-featured { aspect-ratio: 4 / 3; border-radius: 14px; }
	.d247-sp-layout { padding: 0 18px 60px; }
	.d247-sp-prose { font-size: 1rem; line-height: 1.75; }
	.d247-sp-prose > p:first-of-type { font-size: 1.08rem; margin-bottom: 32px; padding-bottom: 24px; }
	.d247-sp-prose blockquote { padding: 18px 22px 18px 36px; }
	.d247-sp-author { padding: 24px 20px; }
	.d247-sp-related, .d247-sp-newsletter, .d247-sp-cta { padding: 60px 18px; }
	.d247-sp-cta-btns { flex-direction: column; }
	.d247-sp-cta-btn-primary, .d247-sp-cta-btn-outline { width: 100%; }
}

/* Print */
@media print {
	.d247-sp-progress-wrap, .d247-sp-crumbs-bar, .d247-sp-toc-wrap,
	.d247-sp-share-sticky, .d247-sp-share-inline, .d247-sp-related,
	.d247-sp-newsletter, .d247-sp-cta, .d247-sp-totop { display: none !important; }
	.d247-sp-layout { grid-template-columns: 1fr !important; padding: 0; }
}
