/* CanvaPro editorial surfaces — error pages + blog */

:root {
	--cp-ed-ink: #0f1c24;
	--cp-ed-ink-soft: #243640;
	--cp-ed-paper: #f3f6f4;
	--cp-ed-paper-2: #e7eeea;
	--cp-ed-teal: #0f766e;
	--cp-ed-teal-bright: #14b8a6;
	--cp-ed-amber: #c2410c;
	--cp-ed-muted: #5b6b73;
	--cp-ed-line: rgba(15, 28, 36, 0.12);
	--cp-ed-display: "Instrument Serif", Georgia, serif;
	--cp-ed-sans: "Manrope", "Segoe UI", sans-serif;
}

.cp-ed {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	font-family: var(--cp-ed-sans);
	color: var(--cp-ed-ink);
}

.cp-ed-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 80% 55% at 12% -10%, rgba(20, 184, 166, 0.22), transparent 55%),
		radial-gradient(ellipse 70% 50% at 100% 0%, rgba(194, 65, 12, 0.12), transparent 50%),
		linear-gradient(180deg, #eef4f1 0%, var(--cp-ed-paper) 42%, #e8efeb 100%);
}

.cp-ed-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(15, 28, 36, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 28, 36, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	pointer-events: none;
}

.cp-ed-wrap {
	width: min(920px, calc(100% - 2rem));
	margin: 0 auto;
	padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
}

/* —— Error —— */
.cp-ed-error .cp-ed-wrap {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: min(72vh, 720px);
	justify-content: center;
}

.cp-ed-brand {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cp-ed-teal);
	animation: cp-ed-rise 0.7s ease both;
}

.cp-ed-code {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: clamp(5.5rem, 18vw, 9.5rem);
	font-weight: 600;
	line-height: 0.9;
	letter-spacing: -0.04em;
	color: var(--cp-ed-ink);
	animation: cp-ed-rise 0.85s ease 0.05s both;
}

.cp-ed-title {
	margin: 1rem 0 0.75rem;
	font-family: var(--cp-ed-display);
	font-size: clamp(1.85rem, 4.5vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	animation: cp-ed-rise 0.85s ease 0.12s both;
}

.cp-ed-lead {
	margin: 0;
	max-width: 34rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--cp-ed-muted);
	animation: cp-ed-rise 0.85s ease 0.18s both;
}

.cp-ed-note {
	margin: 1.25rem 0 0;
	max-width: 28rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--cp-ed-ink-soft);
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--cp-ed-teal-bright);
	background: rgba(255, 255, 255, 0.55);
	text-align: left;
}

.cp-ed-countdown {
	margin-top: 1.5rem;
	display: grid;
	gap: 0.15rem;
	justify-items: center;
	animation: cp-ed-rise 0.85s ease 0.2s both;
}

.cp-ed-countdown-label,
.cp-ed-countdown-unit {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cp-ed-muted);
}

.cp-ed-countdown-value {
	font-family: var(--cp-ed-display);
	font-size: 3rem;
	font-weight: 600;
	line-height: 1;
	color: var(--cp-ed-amber);
}

.cp-ed-actions {
	margin-top: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	animation: cp-ed-rise 0.85s ease 0.24s both;
}

.cp-ed-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	padding: 0.7rem 1.35rem;
	border-radius: 999px;
	font-family: var(--cp-ed-sans);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.cp-ed-btn:hover {
	transform: translateY(-1px);
}

.cp-ed-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

a.cp-ed-btn-primary,
button.cp-ed-btn-primary,
.cp-ed-btn-primary {
	background: var(--cp-ed-ink);
	color: #f7faf8 !important;
}

a.cp-ed-btn-primary:hover,
a.cp-ed-btn-primary:visited,
a.cp-ed-btn-primary:focus,
button.cp-ed-btn-primary:hover,
.cp-ed-btn-primary:hover {
	background: #17303a;
	color: #ffffff !important;
}

a.cp-ed-btn-ghost,
button.cp-ed-btn-ghost,
.cp-ed-btn-ghost {
	background: transparent;
	color: var(--cp-ed-ink) !important;
	box-shadow: inset 0 0 0 1.5px var(--cp-ed-line);
}

a.cp-ed-btn-ghost:hover,
a.cp-ed-btn-ghost:visited,
button.cp-ed-btn-ghost:hover,
.cp-ed-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.65);
	color: var(--cp-ed-ink) !important;
}

.cp-ed-tools {
	margin-top: 2.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--cp-ed-line);
	width: min(100%, 36rem);
	animation: cp-ed-rise 0.9s ease 0.3s both;
}

.cp-ed-tools-label {
	margin: 0 0 0.85rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cp-ed-muted);
}

.cp-ed-tools-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: center;
}

.cp-ed-tools-list a {
	display: inline-block;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--cp-ed-ink);
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 500;
	box-shadow: inset 0 0 0 1px var(--cp-ed-line);
	transition: background 0.2s ease, color 0.2s ease;
}

.cp-ed-tools-list a:hover {
	background: var(--cp-ed-teal);
	color: #fff;
	box-shadow: none;
}

/* —— Blog index —— */
.cp-blog {
	position: relative;
	isolation: isolate;
	font-family: var(--cp-ed-sans);
	color: var(--cp-ed-ink);
	background: #08141a;
}

.cp-blog-hero {
	position: relative;
	min-height: min(88vh, 820px);
	display: flex;
	align-items: stretch;
	overflow: hidden;
	color: #eef6f3;
}

.cp-blog-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 55% 70% at 78% 40%, rgba(20, 184, 166, 0.38), transparent 60%),
		radial-gradient(ellipse 45% 55% at 18% 85%, rgba(194, 65, 12, 0.22), transparent 55%),
		linear-gradient(145deg, #061015 0%, #0f2a30 48%, #14363a 100%);
}

.cp-blog-hero-media::before {
	content: "";
	position: absolute;
	inset: -20%;
	background:
		conic-gradient(from 210deg at 72% 42%, transparent 0 62%, rgba(255, 255, 255, 0.06) 62% 68%, transparent 68% 100%);
	animation: cp-blog-spin 28s linear infinite;
}

.cp-blog-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
	opacity: 0.55;
}

.cp-blog-hero-inner {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 4.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: end;
}

.cp-blog-hero-copy {
	max-width: 34rem;
}

.cp-blog-brand {
	margin: 0 0 1.1rem;
	font-size: clamp(1.55rem, 3.2vw, 2.15rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: #fff;
	animation: cp-ed-rise 0.75s ease both;
}

.cp-blog-brand span {
	color: var(--cp-ed-teal-bright);
}

.cp-blog-hero-copy h1 {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: clamp(2.8rem, 7vw, 4.6rem);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: #f7fbf9;
	animation: cp-ed-rise 0.85s ease 0.06s both;
}

.cp-blog-hero-copy h1 em {
	font-style: italic;
	color: #9fe8dc;
}

.cp-blog-hero-lead {
	margin: 1.15rem 0 0;
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(238, 246, 243, 0.72);
	max-width: 32rem;
	animation: cp-ed-rise 0.85s ease 0.12s both;
}

.cp-blog-hero-cta {
	margin-top: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	animation: cp-ed-rise 0.85s ease 0.18s both;
}

.cp-blog-hero-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.9rem;
	padding: 0.7rem 1.35rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cp-blog-hero-cta a:hover {
	transform: translateY(-1px);
}

a.cp-blog-cta-primary {
	background: #ecfdf8;
	color: #06201c !important;
}

a.cp-blog-cta-primary:hover {
	background: #fff;
	color: #06201c !important;
}

a.cp-blog-cta-ghost {
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
	color: #eef6f3 !important;
}

a.cp-blog-cta-ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
}

.cp-blog-feature {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 1.35rem;
	overflow: hidden;
	background: rgba(8, 20, 26, 0.55);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
	animation: cp-ed-rise 0.95s ease 0.14s both;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cp-blog-feature:hover {
	transform: translateY(-4px);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.18),
		0 24px 50px rgba(0, 0, 0, 0.28);
}

.cp-blog-feature-art {
	position: relative;
	aspect-ratio: 16 / 10;
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 35%),
		radial-gradient(circle at 78% 62%, rgba(20, 184, 166, 0.55), transparent 42%),
		linear-gradient(160deg, #1a4a4f, #0b2228 55%, #1d2f28);
	overflow: hidden;
}

.cp-blog-feature-art::before {
	content: attr(data-letter);
	position: absolute;
	right: -4%;
	bottom: -18%;
	font-family: var(--cp-ed-display);
	font-size: clamp(9rem, 22vw, 14rem);
	line-height: 0.8;
	color: rgba(255, 255, 255, 0.1);
	pointer-events: none;
	animation: cp-blog-float 7s ease-in-out infinite;
}

.cp-blog-feature-art::after {
	content: "";
	position: absolute;
	width: 42%;
	aspect-ratio: 1;
	border-radius: 50%;
	left: 12%;
	top: 18%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
	filter: blur(2px);
	animation: cp-blog-float 9s ease-in-out infinite reverse;
}

.cp-blog-feature-body {
	padding: 1.25rem 1.35rem 1.4rem;
}

.cp-blog-feature-meta {
	margin: 0 0 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #7dd3c7;
}

.cp-blog-feature-body h2 {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: clamp(1.55rem, 2.6vw, 2rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #f4fbf8;
}

.cp-blog-feature-body p {
	margin: 0.55rem 0 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: rgba(238, 246, 243, 0.68);
}

.cp-blog-feature-go {
	display: inline-flex;
	margin-top: 0.9rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: #9fe8dc;
}

.cp-blog-stream {
	position: relative;
	background:
		radial-gradient(ellipse 70% 40% at 0% 0%, rgba(20, 184, 166, 0.1), transparent 50%),
		linear-gradient(180deg, #eef4f1 0%, #f6f8f6 100%);
	color: var(--cp-ed-ink);
	padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(4rem, 9vw, 6rem);
}

.cp-blog-stream-inner {
	width: min(1080px, calc(100% - 2rem));
	margin: 0 auto;
}

.cp-blog-stream-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.cp-blog-stream-head h2 {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	font-weight: 400;
	letter-spacing: -0.02em;
}

.cp-blog-stream-head p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--cp-ed-muted);
}

.cp-blog-grid {
	display: grid;
	gap: 1rem;
}

.cp-blog-card {
	display: grid;
	grid-template-columns: 5.5rem 1fr auto;
	gap: 1.1rem 1.35rem;
	align-items: center;
	padding: 1.25rem 1.35rem;
	text-decoration: none;
	color: inherit;
	border-radius: 1.1rem;
	background: rgba(255, 255, 255, 0.62);
	box-shadow: inset 0 0 0 1px var(--cp-ed-line);
	transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
	animation: cp-ed-rise 0.75s ease both;
}

.cp-blog-card:hover {
	transform: translateY(-2px);
	background: #fff;
	box-shadow:
		inset 0 0 0 1px rgba(15, 118, 110, 0.2),
		0 14px 30px rgba(15, 28, 36, 0.08);
}

.cp-blog-card-date {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cp-ed-teal);
}

.cp-blog-card-title {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.cp-blog-card-excerpt {
	margin: 0.35rem 0 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--cp-ed-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cp-blog-card-arrow {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 1.1rem;
	color: var(--cp-ed-ink);
	box-shadow: inset 0 0 0 1.5px var(--cp-ed-line);
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cp-blog-card:hover .cp-blog-card-arrow {
	background: var(--cp-ed-ink);
	color: #fff;
	box-shadow: none;
}

.cp-blog-empty {
	padding: 2rem 1.25rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.55);
	color: var(--cp-ed-muted);
	box-shadow: inset 0 0 0 1px var(--cp-ed-line);
}

/* —— Blog article —— */
.cp-article {
	font-family: var(--cp-ed-sans);
	color: var(--cp-ed-ink);
}

.cp-article-hero {
	position: relative;
	overflow: hidden;
	color: #eef6f3;
	padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 3.75rem);
	background:
		radial-gradient(ellipse 60% 80% at 85% 20%, rgba(20, 184, 166, 0.35), transparent 55%),
		radial-gradient(ellipse 50% 60% at 10% 90%, rgba(194, 65, 12, 0.18), transparent 50%),
		linear-gradient(160deg, #061015, #123036 55%, #0d2428);
}

.cp-article-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(180deg, #000, transparent 90%);
	pointer-events: none;
}

.cp-article-hero-inner {
	position: relative;
	z-index: 1;
	width: min(820px, calc(100% - 2rem));
	margin: 0 auto;
}

.cp-article-crumb {
	margin: 0 0 1.25rem;
	font-size: 0.86rem;
	color: rgba(238, 246, 243, 0.65);
	animation: cp-ed-rise 0.65s ease both;
}

.cp-article-crumb a {
	color: #9fe8dc !important;
	font-weight: 700;
	text-decoration: none;
}

.cp-article-crumb a:hover {
	text-decoration: underline;
}

.cp-article-brand {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #7dd3c7;
	animation: cp-ed-rise 0.7s ease 0.04s both;
}

.cp-article-hero h1 {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: clamp(2.4rem, 6vw, 3.8rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: #f7fbf9;
	animation: cp-ed-rise 0.85s ease 0.08s both;
}

.cp-article-deck {
	margin: 1.1rem 0 0;
	font-size: 1.15rem;
	line-height: 1.6;
	color: rgba(238, 246, 243, 0.74);
	animation: cp-ed-rise 0.85s ease 0.14s both;
}

.cp-article-meta {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.25rem;
	font-size: 0.86rem;
	font-weight: 600;
	color: rgba(238, 246, 243, 0.62);
	animation: cp-ed-rise 0.85s ease 0.18s both;
}

.cp-article-draft {
	color: #fdba74;
}

.cp-article-body-wrap {
	background: linear-gradient(180deg, #f4f7f5 0%, #fbfcfb 100%);
	padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(4rem, 9vw, 6rem);
}

.cp-article-body {
	width: min(720px, calc(100% - 2rem));
	margin: 0 auto;
}

.cp-ed-prose {
	font-size: 1.12rem;
	line-height: 1.8;
	color: var(--cp-ed-ink-soft);
	animation: cp-ed-rise 0.85s ease 0.16s both;
}

.cp-ed-prose > p:first-of-type::first-letter {
	float: left;
	font-family: var(--cp-ed-display);
	font-size: 4.2rem;
	line-height: 0.8;
	padding: 0.12em 0.12em 0 0;
	color: var(--cp-ed-teal);
}

.cp-ed-prose > *:first-child {
	margin-top: 0;
}

.cp-ed-prose p {
	margin: 0 0 1.2rem;
}

.cp-ed-prose h2,
.cp-ed-prose h3,
.cp-ed-prose h4 {
	font-family: var(--cp-ed-display);
	color: var(--cp-ed-ink);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 2.1rem 0 0.8rem;
	font-weight: 400;
}

.cp-ed-prose h2 { font-size: 1.8rem; }
.cp-ed-prose h3 { font-size: 1.45rem; }
.cp-ed-prose h4 { font-size: 1.2rem; }

.cp-ed-prose a {
	color: var(--cp-ed-teal) !important;
	font-weight: 700;
}

.cp-ed-prose ul,
.cp-ed-prose ol {
	margin: 0 0 1.2rem;
	padding-left: 1.25rem;
}

.cp-ed-prose li {
	margin: 0.4rem 0;
}

.cp-ed-prose blockquote {
	margin: 1.75rem 0;
	padding: 0.35rem 0 0.35rem 1.15rem;
	border-left: 3px solid var(--cp-ed-teal-bright);
	color: var(--cp-ed-ink);
	font-family: var(--cp-ed-display);
	font-size: 1.35rem;
	font-style: italic;
	line-height: 1.35;
}

.cp-ed-prose code,
.cp-ed-prose pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
}

.cp-ed-prose pre {
	padding: 1rem 1.1rem;
	overflow: auto;
	background: rgba(15, 28, 36, 0.06);
	border-radius: 12px;
}

.cp-article-footer {
	margin-top: 2.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--cp-ed-line);
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: center;
	justify-content: space-between;
}

.cp-article-footer a {
	font-weight: 700;
	text-decoration: none;
	color: var(--cp-ed-ink) !important;
}

.cp-article-footer a:hover {
	color: var(--cp-ed-teal) !important;
}

a.cp-article-tools {
	display: inline-flex;
	align-items: center;
	min-height: 2.6rem;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	background: var(--cp-ed-ink);
	color: #f7faf8 !important;
}

a.cp-article-tools:hover {
	background: #17303a;
	color: #fff !important;
}

@keyframes cp-blog-spin {
	to { transform: rotate(360deg); }
}

@keyframes cp-blog-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes cp-ed-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 900px) {
	.cp-blog-hero-inner {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.cp-blog-hero {
		min-height: auto;
	}

	.cp-blog-card {
		grid-template-columns: 1fr auto;
	}

	.cp-blog-card-date {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.cp-blog-stream-head {
		flex-direction: column;
		align-items: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cp-blog-hero-media::before,
	.cp-blog-feature-art::before,
	.cp-blog-feature-art::after,
	.cp-blog-brand,
	.cp-blog-hero-copy h1,
	.cp-blog-hero-lead,
	.cp-blog-hero-cta,
	.cp-blog-feature,
	.cp-blog-card,
	.cp-article-crumb,
	.cp-article-brand,
	.cp-article-hero h1,
	.cp-article-deck,
	.cp-article-meta,
	.cp-ed-prose,
	.cp-ed-brand,
	.cp-ed-code,
	.cp-ed-title,
	.cp-ed-lead,
	.cp-ed-actions,
	.cp-ed-tools,
	.cp-ed-countdown {
		animation: none;
	}

	.cp-blog-feature:hover,
	.cp-blog-card:hover,
	.cp-blog-hero-cta a:hover,
	.cp-ed-btn:hover {
		transform: none;
	}
}

/* legacy blog list hooks kept quiet if referenced */
.cp-ed-blog-hero,
.cp-ed-blog-list,
.cp-ed-article-hero,
.cp-ed-article-body {
	font-family: var(--cp-ed-sans);
}

/* —— Simple journal (current blog design) —— */
.cp-journal,
.cp-paper {
	--journal-paper: #f7f3ea;
	--journal-ink: #191918;
	--journal-muted: #66645f;
	--journal-line: rgba(25, 25, 24, 0.18);
	--journal-accent: #e4572e;
	font-family: var(--cp-ed-sans);
	color: var(--journal-ink);
	background: var(--journal-paper);
}

.cp-journal {
	padding: 0 0 clamp(4rem, 9vw, 7rem);
}

.cp-journal-head {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
	min-height: 5.25rem;
	display: grid;
	grid-template-columns: 1fr 1.4fr auto;
	gap: 2rem;
	align-items: center;
	border-bottom: 1px solid var(--journal-line);
}

.cp-journal-mark {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 0.88rem;
}

.cp-journal-mark span {
	font-weight: 800;
}

.cp-journal-mark strong {
	font-family: var(--cp-ed-display);
	font-size: 1.15rem;
	font-weight: 400;
	font-style: italic;
	color: var(--journal-accent);
}

.cp-journal-head > p {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--journal-muted);
}

.cp-journal-head > a {
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--journal-ink) !important;
}

.cp-journal-head > a:hover {
	color: var(--journal-accent) !important;
}

.cp-journal-intro {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
	padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
	display: grid;
	grid-template-columns: 13rem 1fr;
	gap: 2rem;
	align-items: start;
}

.cp-journal-label {
	margin: 0.65rem 0 0;
	padding-top: 0.85rem;
	border-top: 3px solid var(--journal-accent);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.cp-journal-intro h1 {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: clamp(3.3rem, 9vw, 7.5rem);
	font-weight: 400;
	line-height: 0.84;
	letter-spacing: -0.045em;
	color: var(--journal-ink);
}

.cp-journal-intro h1 em {
	font-weight: 400;
	color: var(--journal-accent);
}

.cp-journal-posts {
	width: min(1120px, calc(100% - 2rem));
	margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}

.cp-journal-posts-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--journal-ink);
}

.cp-journal-posts-head h2 {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: 1.65rem;
	font-weight: 400;
}

.cp-journal-posts-head span {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--journal-muted);
}

.cp-journal-row {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr) 3rem;
	gap: 1.25rem;
	align-items: center;
	padding: clamp(1.5rem, 4vw, 2.35rem) 0;
	border-bottom: 1px solid var(--journal-line);
	color: var(--journal-ink) !important;
	text-decoration: none;
	transition: padding 0.2s ease, color 0.2s ease;
}

.cp-journal-row:hover {
	padding-left: 0.75rem;
	color: var(--journal-ink) !important;
}

.cp-journal-number {
	align-self: start;
	padding-top: 0.35rem;
	font-family: var(--cp-ed-display);
	font-size: 1rem;
	color: var(--journal-accent);
}

.cp-journal-meta {
	margin: 0 0 0.45rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--journal-muted);
}

.cp-journal-copy h3 {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: clamp(1.65rem, 3.5vw, 2.6rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.cp-journal-excerpt {
	margin: 0.6rem 0 0;
	max-width: 44rem;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--journal-muted);
}

.cp-journal-arrow {
	width: 2.5rem;
	height: 2.5rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--journal-line);
	border-radius: 50%;
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cp-journal-row:hover .cp-journal-arrow {
	color: var(--journal-accent);
	border-color: var(--journal-accent);
	transform: rotate(-35deg);
}

.cp-journal-empty {
	margin: 0;
	padding: 2rem 0;
	color: var(--journal-muted);
}

/* Article: same paper, narrower reading column. */
.cp-paper {
	padding-bottom: clamp(4rem, 8vw, 6rem);
}

.cp-paper-head {
	width: min(980px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.cp-paper-nav {
	min-height: 5.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	border-bottom: 1px solid var(--journal-line);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--journal-muted);
}

.cp-paper-nav a {
	color: var(--journal-ink) !important;
	text-decoration: none;
}

.cp-paper-nav a:hover {
	color: var(--journal-accent) !important;
}

.cp-paper-title {
	padding-top: clamp(2.75rem, 7vw, 5.5rem);
	max-width: 52rem;
}

.cp-paper-label {
	margin: 0 0 1rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--journal-accent);
}

.cp-paper-title h1 {
	margin: 0;
	font-family: var(--cp-ed-display);
	font-size: clamp(2.8rem, 7vw, 5.5rem);
	font-weight: 400;
	line-height: 0.96;
	letter-spacing: -0.04em;
	color: var(--journal-ink);
}

.cp-paper-deck {
	margin: 1.35rem 0 0;
	max-width: 42rem;
	padding-left: 1rem;
	border-left: 3px solid var(--journal-accent);
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--journal-muted);
}

.cp-paper-draft {
	color: var(--journal-accent);
	font-weight: 700;
}

.cp-paper-body-wrap {
	border-top: 1px solid var(--journal-line);
	padding-top: clamp(2.5rem, 6vw, 4rem);
}

.cp-paper-body {
	width: min(700px, calc(100% - 2rem));
	margin: 0 auto;
}

.cp-paper .cp-ed-prose {
	font-family: var(--cp-ed-sans);
	font-size: 1.04rem;
	line-height: 1.8;
	color: #363633;
	animation: none;
}

.cp-paper .cp-ed-prose > p:first-of-type::first-letter {
	float: none;
	padding: 0;
	font: inherit;
	color: inherit;
}

.cp-paper .cp-ed-prose h2,
.cp-paper .cp-ed-prose h3,
.cp-paper .cp-ed-prose h4 {
	font-family: var(--cp-ed-display);
	font-weight: 400;
	color: var(--journal-ink);
}

.cp-paper-footer {
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--journal-ink);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.82rem;
	font-weight: 800;
}

.cp-paper-footer a {
	color: var(--journal-ink) !important;
	text-decoration: none;
}

.cp-paper-footer a:hover {
	color: var(--journal-accent) !important;
}

@media (max-width: 700px) {
	.cp-journal-head {
		grid-template-columns: 1fr auto;
		gap: 1rem;
	}

	.cp-journal-head > p {
		display: none;
	}

	.cp-journal-intro {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.cp-journal-label {
		width: 9rem;
	}

	.cp-journal-row {
		grid-template-columns: 2rem minmax(0, 1fr);
		gap: 0.85rem;
	}

	.cp-journal-arrow {
		display: none;
	}

	.cp-journal-row:hover {
		padding-left: 0;
	}

	.cp-paper-nav span {
		display: none;
	}
}

/* —— CanvaPro blog listing (sinhalaeditor-style) —— */
.cpb,
.cpa {
	--cpb-text: #0a0a0a;
	--cpb-text-2: #2a2a2a;
	--cpb-muted: #6b7280;
	--cpb-line: #e5e7eb;
	--cpb-line-strong: #d1d5db;
	--cpb-surface: #ffffff;
	--cpb-soft: #f3f4f6;
	--cpb-teal: #0d9488;
	--cpb-teal-dark: #0f766e;
	--cpb-blue: #2563eb;
	font-family: var(--cp-ed-sans);
	color: var(--cpb-text);
	background: #fff;
}

.cpb-wrap,
.cpa-wrap {
	width: min(1100px, calc(100% - 2rem));
	margin: 0 auto;
}

.cpb-page {
	padding-bottom: 0;
	background: #fff;
}

.cpb-pagination {
	margin: 1.5rem 0 0.35rem;
}

.cpb-page-meta {
	margin: 0.35rem 0 0;
}

/* Keep blog listing tight against related/footer — no empty ad reservation */
.cpb + .ad-spot,
.cpb ~ .ad-spot,
.cpb ~ .ad-spot-before-footer,
.cpb ~ .google-auto-placed,
.cpa ~ .google-auto-placed {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: 0 !important;
}

/* White breathing room after pagination; no dark body strip */
main.cpb {
	margin-bottom: 0 !important;
	padding-bottom: 2.25rem !important;
	background: #fff;
}

body.rd-c:has(main.cpb) .footer,
body.studio-theme:has(main.cpb) .footer,
body.rd-c:has(main.cpa) .footer,
body.studio-theme:has(main.cpa) .footer {
	margin-top: 0 !important;
	padding: 1.15rem 0 1.25rem !important;
	border-top: 1px solid #1e293b !important;
}

body.rd-c .cpb + .bg-related,
body.studio-theme .cpb + .bg-related,
.cpb ~ #related-ai-tools.bg-related {
	display: none !important;
}

.cpb-hero-band {
	position: relative;
	margin: 0 0 1.35rem;
	padding: 0.85rem 0 1.25rem;
	border-bottom: 1.5px solid var(--cpb-line-strong);
	background: #fff;
}

.cpb-crumb {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--cpb-muted);
}

.cpb-crumb a {
	color: var(--cpb-muted) !important;
	text-decoration: none;
}

.cpb-crumb a:hover {
	color: var(--cpb-text) !important;
}

.cpb-hero-badge,
.cpa-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.65rem;
	padding: 0.28rem 0.7rem;
	border: 1.5px solid var(--cpb-text);
	border-radius: 999px;
	background: var(--cpb-text);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cpa-badge {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(13, 148, 136, 0.25);
	color: var(--cpb-teal-dark);
	text-transform: none;
	letter-spacing: 0.04em;
}

.cpa-badge::before {
	content: "";
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: var(--cpb-teal);
}

.cpb-hero-band h1 {
	margin: 0 0 0.45rem;
	font-size: clamp(1.75rem, 4vw, 2.45rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
	color: var(--cpb-text);
}

.cpb-hero-sub {
	margin: 0;
	max-width: 36rem;
	color: var(--cpb-muted);
	font-size: 1.02rem;
	line-height: 1.5;
}

.cpb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

a.cpb-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1.5px solid var(--cpb-line-strong);
	border-radius: 14px;
	background: var(--cpb-surface);
	color: inherit !important;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.cpb-card:hover,
a.cpb-card:focus-visible {
	transform: scale(1.03);
	z-index: 2;
	border-color: var(--cpb-text);
	box-shadow: 6px 6px 0 rgba(10, 10, 10, 0.12);
	outline: none;
	color: inherit !important;
}

.cpb-card-img-wrap {
	overflow: hidden;
	background: var(--cpb-soft);
	border-bottom: 1.5px solid var(--cpb-line);
}

.cpb-card-img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.cpb-card-img.is-placeholder {
	display: grid;
	place-items: center;
	height: 200px;
	background: linear-gradient(135deg, #f0f0ee 0%, #e4e4e0 100%);
	color: var(--cpb-muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.cpb-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.15rem 1.2rem 1.25rem;
}

.cpb-card-title {
	margin: 0 0 0.45rem;
	font-size: 1.08rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--cpb-text);
}

.cpb-card-excerpt {
	margin: 0 0 0.85rem;
	flex: 1;
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--cpb-text-2);
}

.cpb-card-meta {
	margin: 0;
	margin-top: auto;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--cpb-muted);
}

.cpb-empty {
	padding: 2.5rem 1.25rem;
	text-align: center;
	border: 1.5px dashed var(--cpb-line-strong);
	border-radius: 14px;
	color: var(--cpb-muted);
	background: var(--cpb-soft);
}

.cpb-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem 1rem;
	margin: 1.5rem 0 0.25rem;
}

.cpb-page-nums {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.cpb-page-btn,
.cpb-page-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0.35rem 0.75rem;
	border: 1.5px solid var(--cpb-line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--cpb-text) !important;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

a.cpb-page-btn:hover,
a.cpb-page-num:hover {
	border-color: var(--cpb-text);
	background: var(--cpb-text);
	color: #fff !important;
}

.cpb-page-num.is-current {
	border-color: var(--cpb-text);
	background: var(--cpb-text);
	color: #fff !important;
}

.cpb-page-btn.is-disabled {
	opacity: 0.4;
	cursor: default;
}

.cpb-page-meta {
	margin: 0.35rem 0 0;
	text-align: center;
	color: var(--cpb-muted);
	font-size: 0.82rem;
	font-weight: 600;
}

@media (max-width: 980px) {
	.cpb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cpb-grid {
		grid-template-columns: 1fr;
	}

	.cpb-wrap,
	.cpa-wrap {
		width: min(100% - 1.25rem, 1100px);
	}

	.cpb-card-img,
	.cpb-card-img.is-placeholder {
		height: 180px;
	}
}

/* Article page (sinhalaeditor.com/blog post layout) */
.cpa {
	background: #fff;
	padding: 0;
	padding-bottom: 2.5rem;
}

.cpa + .ad-spot,
.cpa ~ .ad-spot,
.cpa ~ .ad-spot-before-footer {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
}

main.cpa {
	margin-bottom: 0 !important;
	padding-bottom: 2.5rem !important;
}

body.rd-c .cpa + .bg-related,
body.studio-theme .cpa + .bg-related,
.cpa ~ #related-ai-tools.bg-related {
	display: none !important;
}

.cpa-hero-band {
	position: relative;
	margin: 0 0 1.5rem;
	padding: 1.15rem 0 1.35rem;
	border-bottom: 1.5px solid var(--cpb-line-strong);
	background: #fff;
}

.cpa-hero-band .cpa-wrap {
	padding-bottom: 0;
}

.cpa-crumb {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--cpb-muted);
	line-height: 1.45;
}

.cpa-crumb a {
	color: var(--cpb-muted) !important;
	text-decoration: none;
}

.cpa-crumb a:hover {
	color: var(--cpb-text) !important;
}

.cpa-hero-band h1 {
	margin: 0 0 0.45rem;
	font-size: clamp(1.75rem, 4vw, 2.45rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
	color: var(--cpb-text);
}

.cpa-meta {
	margin: 0;
	max-width: 36rem;
	color: var(--cpb-muted);
	font-size: 1.02rem;
	line-height: 1.5;
	font-weight: 600;
}

.cpa-draft {
	margin: 0.55rem 0 0;
	color: #c2410c;
	font-weight: 700;
	font-size: 0.85rem;
}

.cpa-post-layout {
	width: min(1100px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 0 0 1rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 2rem;
	align-items: start;
}

.cpa-post-wrap {
	min-width: 0;
}

.cpa-cover {
	margin: 0 0 1.5rem;
}

.cpa-cover img {
	display: block;
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 14px;
	border: 1.5px solid var(--cpb-line-strong);
	background: var(--cpb-soft);
}

.cpa-reading {
	width: 100%;
	margin: 0;
}

.cpa .cp-ed-prose {
	font-family: var(--cp-ed-sans);
	font-size: 1.05rem;
	line-height: 1.75;
	color: #2a2a2a;
	animation: none;
	-webkit-user-select: text;
	user-select: text;
}

.cpa .cp-ed-prose > p:first-of-type::first-letter {
	float: none;
	padding: 0;
	font: inherit;
	color: inherit;
}

.cpa .cp-ed-prose h2,
.cpa .cp-ed-prose h3,
.cpa .cp-ed-prose h4 {
	font-family: var(--cp-ed-sans);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--cpb-text);
}

.cpa .cp-ed-prose h2 {
	margin: 1.75rem 0 0.65rem;
	font-size: 1.35rem;
}

.cpa .cp-ed-prose h3 {
	margin: 1.4rem 0 0.5rem;
	font-size: 1.15rem;
}

.cpa .cp-ed-prose p,
.cpa .cp-ed-prose ul,
.cpa .cp-ed-prose ol {
	margin: 0 0 1rem;
}

.cpa .cp-ed-prose ul,
.cpa .cp-ed-prose ol {
	padding-left: 1.25rem;
}

.cpa .cp-ed-prose a {
	color: var(--cpb-text) !important;
	font-weight: 650;
}

.cpa-back-wrap {
	margin-top: 2rem;
	text-align: center;
}

a.cpa-back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.35rem;
	border: 1.5px solid var(--cpb-text);
	border-radius: 999px;
	background: #fff;
	color: var(--cpb-text) !important;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: 3px 3px 0 rgba(10, 10, 10, 0.1);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

a.cpa-back:hover {
	background: var(--cpb-text);
	color: #fff !important;
	transform: translateY(-2px);
}

.cpa-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: sticky;
	top: 1rem;
}

.cpa-side-card {
	padding: 1.2rem;
	border: 1.5px solid var(--cpb-line-strong);
	border-radius: 14px;
	background: #fff;
}

.cpa-side-card h3 {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--cpb-text);
}

.cpa-side-card > p {
	margin: 0 0 0.9rem;
	font-size: 0.9rem;
	color: var(--cpb-muted);
	line-height: 1.45;
	font-weight: 500;
}

a.cpa-side-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.55rem;
	padding: 0.7rem 1rem;
	border: 1.5px solid var(--cpb-text);
	border-radius: 999px;
	background: #fff;
	color: var(--cpb-text) !important;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
}

a.cpa-side-btn:first-of-type {
	margin-top: 0;
}

a.cpa-side-btn.is-primary,
a.cpa-side-btn.is-primary:hover {
	background: var(--cpb-text);
	color: #fff !important;
}

a.cpa-side-btn:not(.is-primary):hover {
	background: var(--cpb-text);
	color: #fff !important;
}

.cpa-more-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cpa-more-posts li + li {
	margin-top: 0.45rem;
}

.cpa-more-posts a {
	color: var(--cpb-text-2) !important;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	line-height: 1.4;
}

.cpa-more-posts a:hover {
	color: var(--cpb-text) !important;
	text-decoration: underline;
}

@media (max-width: 960px) {
	.cpa-post-layout {
		grid-template-columns: 1fr;
	}

	.cpa-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.cpa-post-layout {
		width: min(100% - 1.25rem, 1100px);
	}
}

/* Related tools cards (blog/studio pages don't load tool-ui-d.css) */
.bg-related {
	padding: 1.15rem 0 2.25rem;
	margin-top: 0;
}

.bg-related-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 1.35rem;
}

.bg-related-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #67e8f9;
	background: rgba(103, 232, 249, 0.1);
	border: 1px solid rgba(103, 232, 249, 0.28);
	border-radius: 999px;
	padding: 0.25rem 0.65rem;
	margin-bottom: 0.6rem;
}

.bg-related-head h2 {
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #f8fafc;
	margin: 0 0 0.45rem;
}

.bg-related-head p {
	margin: 0;
	font-size: 0.9rem;
	color: #94a3b8;
	line-height: 1.6;
}

.bg-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

a.bg-related-card {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.95rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.14);
	background: rgba(11, 18, 32, 0.85);
	color: inherit !important;
	text-decoration: none !important;
	transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

a.bg-related-card:hover {
	border-color: rgba(103, 232, 249, 0.4);
	background: rgba(15, 23, 42, 0.95);
	transform: translateY(-2px);
	text-decoration: none !important;
}

.bg-related-card strong {
	color: #f1f5f9;
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none !important;
}

.bg-related-card span {
	color: #94a3b8;
	font-size: 0.78rem;
	line-height: 1.45;
	text-decoration: none !important;
}

@media (max-width: 900px) {
	.bg-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.bg-related-grid {
		grid-template-columns: 1fr;
	}
}

