/* ============================================================
   Cubiq Insights – single post styles
   Brand: #020b31 bg · #3973D9 blue · Open Sauce One
   ============================================================ */

.cqi-sp-page {
	background: #020b31;
	min-height: 100vh;
	font-family: "Open Sauce One", sans-serif;
	color: rgba(255,255,255,0.78);
}

/* ── Header ─────────────────────────────────────────────── */
.cqi-sp-header {
	padding: 140px 0 56px;
}

.cqi-sp-header-inner {
	max-width: 92rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.cqi-sp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: rgba(255,255,255,0.4);
	margin-bottom: 28px;
}

.cqi-sp-breadcrumb a {
	color: rgba(255,255,255,0.4);
	text-decoration: none;
	transition: color 0.2s ease;
}

.cqi-sp-breadcrumb a:hover {
	color: rgba(255,255,255,0.75);
}

.cqi-sp-title {
	font-size: clamp(2rem, 4.5vw, 3.75rem);
	font-weight: 300;
	color: #fff;
	line-height: 1.1;
	letter-spacing: normal;
	margin: 0 0 28px;
	max-width: 820px;
}

.cqi-sp-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.8125rem;
	color: rgba(255,255,255,0.4);
}

.cqi-sp-meta-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cqi-sp-meta-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255,255,255,0.55);
}

.cqi-sp-author-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(255,255,255,0.15);
	flex-shrink: 0;
}

.cqi-sp-author-name {
	font-size: 0.8125rem;
	font-weight: 500;
	color: rgba(255,255,255,0.6);
}

.cqi-sp-cat-badge {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.18);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: rgba(255,255,255,0.85);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
}

.cqi-sp-meta-sep {
	opacity: 0.3;
}

/* ── Hero image ─────────────────────────────────────────── */
.cqi-sp-hero {
	max-width: 92rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.cqi-sp-hero-inner {
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 21 / 9;
	border: 1px solid rgba(255,255,255,0.07);
}

.cqi-sp-hero-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Body layout ─────────────────────────────────────────── */
.cqi-sp-body {
	max-width: 92rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.cqi-sp-body-inner {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 72px;
	padding: 64px 0 120px;
}

/* ── Sidebar / Table of Contents ─────────────────────────── */
.cqi-sp-sidebar {
	align-self: start;
}

.cqi-toc {
	/* sticky applied via JS for grid compatibility */
}

.cqi-toc-label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.3);
	margin: 0 0 16px;
}

.cqi-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.cqi-toc-list::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(255,255,255,0.08);
}

.cqi-toc-item {
	margin: 0;
	padding: 0;
}

.cqi-toc-link {
	display: block;
	padding: 6px 0 6px 16px;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: rgba(255,255,255,0.38);
	text-decoration: none;
	position: relative;
	transition: color 0.2s ease;
}

.cqi-toc-link::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, #65C8C0, #3973D9, #4974D2);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.cqi-toc-link:hover {
	color: rgba(255,255,255,0.7);
}

.cqi-toc-link.active {
	color: #fff;
}

.cqi-toc-link.active::before {
	opacity: 1;
}

.cqi-toc-h3 .cqi-toc-link {
	padding-left: 28px;
	font-size: 0.75rem;
}

/* ── Article content typography ──────────────────────────── */
.cqi-sp-content {
	min-width: 0;
	max-width: 720px;
}

.cqi-sp-content p {
	font-size: 1.0625rem;
	line-height: 1.85;
	color: rgba(255,255,255,0.72);
	margin: 0 0 1.5em;
}

.cqi-sp-content h2 {
	font-size: 1.75rem;
	font-weight: 300;
	color: #fff;
	line-height: 1.2;
	letter-spacing: normal;
	margin: 2.5em 0 0.75em;
	padding-top: 0.5em;
}

.cqi-sp-content h3 {
	font-size: 1.25rem;
	font-weight: 500;
	color: rgba(255,255,255,0.9);
	line-height: 1.3;
	margin: 2em 0 0.6em;
}

.cqi-sp-content h4 {
	font-size: 1rem;
	font-weight: 600;
	color: rgba(255,255,255,0.85);
	margin: 1.75em 0 0.5em;
}

.cqi-sp-content a {
	color: #5b9cf6;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(91,156,246,0.4);
	transition: color 0.2s, text-decoration-color 0.2s;
}

.cqi-sp-content a:hover {
	color: #89b8ff;
	text-decoration-color: rgba(137,184,255,0.6);
}

.cqi-sp-content strong {
	color: rgba(255,255,255,0.92);
	font-weight: 600;
}

.cqi-sp-content em {
	color: rgba(255,255,255,0.8);
}

.cqi-sp-content ul,
.cqi-sp-content ol {
	font-size: 1.0625rem;
	line-height: 1.85;
	color: rgba(255,255,255,0.72);
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}

.cqi-sp-content li {
	margin-bottom: 0.4em;
}

.cqi-sp-content blockquote {
	margin: 2em 0;
	padding: 20px 24px;
	border-left: 3px solid #3973D9;
	background: rgba(57,115,217,0.07);
	border-radius: 0 12px 12px 0;
}

.cqi-sp-content blockquote p {
	font-size: 1.125rem;
	font-style: italic;
	color: rgba(255,255,255,0.65);
	margin: 0;
}

.cqi-sp-content hr {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.08);
	margin: 3em 0;
}

.cqi-sp-content img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 1.5em 0;
	display: block;
}

.cqi-sp-content figure {
	margin: 2em 0;
}

.cqi-sp-content figcaption {
	font-size: 0.8125rem;
	color: rgba(255,255,255,0.35);
	text-align: center;
	margin-top: 10px;
}

.cqi-sp-content pre {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 10px;
	padding: 20px 24px;
	overflow-x: auto;
	margin: 1.5em 0;
	font-size: 0.875rem;
	line-height: 1.7;
}

.cqi-sp-content code {
	font-family: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
	font-size: 0.875em;
	background: rgba(255,255,255,0.08);
	border-radius: 4px;
	padding: 2px 6px;
	color: rgba(255,255,255,0.85);
}

.cqi-sp-content pre code {
	background: none;
	padding: 0;
	border-radius: 0;
	font-size: inherit;
	color: rgba(255,255,255,0.75);
}

/* ── Article footer ──────────────────────────────────────── */
.cqi-sp-article-footer {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid rgba(255,255,255,0.07);
}

.cqi-sp-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: rgba(255,255,255,0.4);
	text-decoration: none;
	transition: color 0.2s ease;
}

.cqi-sp-back-link:hover {
	color: rgba(255,255,255,0.8);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
	.cqi-sp-body-inner {
		grid-template-columns: 200px 1fr;
		gap: 48px;
	}
}

@media (max-width: 768px) {
	.cqi-sp-header {
		padding: 120px 0 40px;
	}

	.cqi-sp-body-inner {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 40px 0 80px;
	}

	.cqi-sp-sidebar {
		position: static;
		border-bottom: 1px solid rgba(255,255,255,0.07);
		padding-bottom: 32px;
		margin-bottom: 40px;
	}

	.cqi-sp-hero-inner {
		aspect-ratio: 16 / 9;
		border-radius: 12px;
	}

	.cqi-sp-title {
		font-size: 2rem;
	}
}
