/* SecretPress premium single-post experience. */
.single-post {
	--sp-ink: #111827;
	--sp-muted: #667085;
	--sp-border: #e7eaf0;
	--sp-surface: #ffffff;
	--sp-soft: #f7f9fc;
	--sp-accent: #2563eb;
	--sp-accent-2: #7c3aed;
}

.single-post .site-content {
	background:
		radial-gradient(circle at 10% 0%, rgba(37,99,235,.055), transparent 28rem),
		radial-gradient(circle at 95% 18%, rgba(124,58,237,.05), transparent 30rem);
}

.single-post .inside-article {
	--gp-media-inset: 42px;
	position: relative;
	padding: 42px;
	border: 1px solid rgba(17,24,39,.065);
	border-radius: 24px;
	background: var(--sp-surface);
	box-shadow: 0 20px 55px rgba(15,23,42,.07);
}

.single-post .inside-article::before {
	content: "";
	position: absolute;
	left: 42px;
	right: 42px;
	top: 0;
	height: 3px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, var(--sp-accent), var(--sp-accent-2), #06b6d4);
	opacity: .9;
}

.single-post .entry-header {
	margin-bottom: 26px;
}

.single-post .entry-title {
	max-width: 980px;
	margin: 10px 0 0;
	color: var(--sp-ink);
	font-size: clamp(2rem, 4.2vw, 3.35rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.single-post .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 16px;
	color: var(--sp-muted);
	font-size: 14px;
	font-weight: 550;
}

.single-post .entry-meta a {
	color: inherit;
	text-decoration: none;
}
.single-post .entry-meta a:hover { color: var(--sp-accent); }

.sp-post-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
}

.sp-post-kicker__category,
.sp-post-kicker__read-time {
	display: inline-flex;
	align-items: center;
	min-height: 31px;
	padding: 6px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 750;
	line-height: 1;
	letter-spacing: .02em;
}

.sp-post-kicker__category {
	background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 7px 18px rgba(37,99,235,.16);
}
.sp-post-kicker__category:hover { transform: translateY(-1px); }
.sp-post-kicker__read-time {
	border: 1px solid var(--sp-border);
	background: var(--sp-soft);
	color: #475467;
}

.single-post .entry-content {
	color: #283241;
	font-size: clamp(16px, 1.25vw, 18px);
	line-height: 1.82;
}
.single-post .entry-content > p { margin-bottom: 1.42em; }
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
	color: var(--sp-ink);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.22;
}
.single-post .entry-content h2 {
	margin-top: 1.8em;
	margin-bottom: .7em;
	font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}
.single-post .entry-content h3 {
	margin-top: 1.55em;
	margin-bottom: .65em;
	font-size: clamp(1.3rem, 2vw, 1.65rem);
}
.single-post .entry-content a {
	color: var(--sp-accent);
	text-decoration-thickness: .08em;
	text-underline-offset: .16em;
}
.single-post .entry-content blockquote {
	position: relative;
	margin: 2em 0;
	padding: 22px 24px 22px 26px;
	border: 0;
	border-left: 4px solid var(--sp-accent);
	border-radius: 0 14px 14px 0;
	background: linear-gradient(135deg, #f7faff, #faf7ff);
	color: #344054;
	box-shadow: inset 0 0 0 1px rgba(37,99,235,.06);
}
.single-post .entry-content img:not(.wp-post-image) {
	max-width: 100%;
	height: auto;
	border-radius: 15px;
}
.single-post .entry-content table {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 0 1px var(--sp-border);
}

/* Related + recent modules. */
.sp-post-module {
	clear: both;
	margin: 42px 0;
	padding: 24px;
	border: 1px solid var(--sp-border);
	border-radius: 20px;
	background: linear-gradient(145deg, #fff, #fbfcff 72%);
	box-shadow: 0 15px 35px rgba(15,23,42,.055);
}
.entry-content .sp-related-posts {
	margin-top: 36px;
	margin-bottom: 38px;
}
.sp-recent-posts {
	margin-top: 34px;
	margin-bottom: 10px;
}
.sp-post-module__heading {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 19px;
}
.sp-post-module__heading > div { flex: 0 0 auto; }
.sp-post-module__kicker {
	display: block;
	margin-bottom: 3px;
	color: var(--sp-accent);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.sp-post-module__heading h2 {
	margin: 0 !important;
	color: var(--sp-ink) !important;
	font-size: clamp(1.35rem, 2.2vw, 1.8rem) !important;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.025em;
}
.sp-post-module__line {
	flex: 1;
	height: 1px;
	margin-bottom: 7px;
	background: linear-gradient(90deg, var(--sp-border), transparent);
}

.sp-post-grid {
	display: grid;
	gap: 16px;
}
.sp-post-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-post-grid--recent { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sp-post-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--sp-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(15,23,42,.045);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sp-post-card:hover {
	transform: translateY(-3px);
	border-color: rgba(37,99,235,.22);
	box-shadow: 0 14px 30px rgba(15,23,42,.085);
}
.sp-post-card__media {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(145deg, #eef4ff, #f7f5ff);
	text-decoration: none !important;
}
.sp-post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform .28s ease;
}
.sp-post-card:hover .sp-post-card__media img { transform: scale(1.025); }
.sp-post-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 25% 25%, rgba(255,255,255,.75), transparent 24%),
		linear-gradient(135deg, #dce9ff, #e8ddff);
}
.sp-post-card__placeholder span {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
	color: #fff;
	font-size: 17px;
	font-weight: 850;
	box-shadow: 0 10px 24px rgba(37,99,235,.2);
}
.sp-post-card__body { padding: 15px 15px 16px; }
.sp-post-card__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin-bottom: 7px;
	color: #8a94a6;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: .045em;
}
.sp-post-card__eyebrow span {
	max-width: 58%;
	overflow: hidden;
	color: var(--sp-accent);
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sp-post-card__eyebrow time { margin-left: auto; white-space: nowrap; }
.sp-post-card__title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 2.7em;
	margin: 0 0 11px !important;
	color: var(--sp-ink) !important;
	font-size: 15px !important;
	font-weight: 760 !important;
	line-height: 1.35 !important;
	letter-spacing: -.01em !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.sp-post-card__title a {
	color: inherit !important;
	text-decoration: none !important;
}
.sp-post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #475467 !important;
	font-size: 12px;
	font-weight: 750;
	text-decoration: none !important;
}
.sp-post-card__more span {
	color: var(--sp-accent);
	font-size: 15px;
	transition: transform .18s ease;
}
.sp-post-card:hover .sp-post-card__more span { transform: translateX(3px); }

.single-post footer.entry-meta {
	margin-top: 38px;
	padding: 18px 20px;
	border: 1px solid var(--sp-border);
	border-radius: 14px;
	background: var(--sp-soft);
}

@media (max-width: 1024px) {
	.sp-post-grid--recent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.single-post .inside-article {
		--gp-media-inset: 20px;
		padding: 28px 20px 22px;
		border-left: 0;
		border-right: 0;
		border-radius: 0;
		box-shadow: none;
	}
	.single-post .inside-article::before { left: 20px; right: 20px; }
	.single-post .entry-header { margin-bottom: 20px; }
	.single-post .entry-title {
		font-size: clamp(1.85rem, 8.6vw, 2.55rem);
		line-height: 1.1;
	}
	.single-post .entry-content { font-size: 16.5px; line-height: 1.76; }
	.sp-post-module {
		margin: 32px 0;
		padding: 18px;
		border-radius: 17px;
	}
	.sp-post-grid--related,
	.sp-post-grid--recent { grid-template-columns: 1fr; }
	.sp-post-card {
		display: grid;
		grid-template-columns: minmax(110px, 34%) 1fr;
		align-items: stretch;
	}
	.sp-post-card__media { aspect-ratio: auto; min-height: 125px; }
	.sp-post-card__body { padding: 13px 13px 14px; }
	.sp-post-card__eyebrow time { display: none; }
	.sp-post-card__title { font-size: 14px !important; }
	.sp-post-module__heading { margin-bottom: 15px; }
	.single-post footer.entry-meta { padding: 15px 16px; }
}

@media (max-width: 430px) {
	.sp-post-card { grid-template-columns: 112px 1fr; }
	.sp-post-card__more { font-size: 11px; }
	.sp-post-card__body { padding: 11px 11px 12px; }
}

/* Attractive previous / next post navigation cards */
.single-post .post-navigation {
	margin-top: 28px;
	padding-top: 8px;
}
.single-post .post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.single-post .post-navigation .nav-links > div {
	padding: 0;
}
.single-post .sp-post-nav-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 112px;
	padding: 18px 18px;
	border: 1px solid var(--sp-border);
	border-radius: 18px;
	background: linear-gradient(145deg, #ffffff, #f8fbff 75%);
	box-shadow: 0 12px 28px rgba(15,23,42,.055);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.single-post .sp-post-nav-card:hover {
	transform: translateY(-2px);
	border-color: rgba(37,99,235,.28);
	box-shadow: 0 16px 34px rgba(15,23,42,.085);
}
.single-post .sp-post-nav-card__icon {
	flex: 0 0 44px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
	color: #fff;
	box-shadow: 0 8px 20px rgba(37,99,235,.2);
}
.single-post .sp-post-nav-card__icon .gp-icon,
.single-post .sp-post-nav-card__icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.single-post .sp-post-nav-card__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.single-post .nav-next .sp-post-nav-card__content {
	text-align: right;
}
.single-post .sp-post-nav-card__label {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(37,99,235,.08);
	color: var(--sp-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1;
	text-transform: uppercase;
}
.single-post .nav-next .sp-post-nav-card__label {
	align-self: flex-end;
}
.single-post .sp-post-nav-card__title,
.single-post .sp-post-nav-card__title a {
	color: var(--sp-ink) !important;
	font-size: 16px;
	font-weight: 760;
	line-height: 1.35;
	text-decoration: none !important;
}
.single-post .sp-post-nav-card__title a:hover {
	color: var(--sp-accent) !important;
}
.single-post .sp-post-nav-card__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

@media (max-width: 768px) {
	.single-post .post-navigation .nav-links {
		grid-template-columns: 1fr;
	}
	.single-post .sp-post-nav-card {
		min-height: 96px;
		padding: 15px;
		border-radius: 16px;
	}
	.single-post .sp-post-nav-card__title,
	.single-post .sp-post-nav-card__title a {
		font-size: 15px;
	}
}
