/* Single blog post. Scoped to .cc-blog so the rest of the site stays as it is.
   Font is the site font (Albert Sans). Header and footer are not restyled. */

.cc-blog {
	background: #0b0f14;
	padding: 8px 0 48px;
	color: #c8ced6;
	font-family: 'Albert Sans', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.cc-blog * {
	font-family: inherit;
}

.cc-blog #breadcrumbs,
.cc-blog #breadcrumbs span {
	color: #6b7a8d;
	font-size: 13px;
}

.cc-blog #breadcrumbs a {
	color: #00ff92;
	font-weight: 500;
}

.cc-blog #breadcrumbs a:hover {
	color: #a8f0d6;
}

.cc-blog__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	column-gap: 28px;
	align-items: start;
	margin-top: 8px;
}

.cc-blog__layout--full {
	grid-template-columns: minmax(0, 1fr);
}

.cc-blog__hero,
.cc-blog__body {
	min-width: 0;
}

.cc-blog__sidebar {
	grid-column: 2;
	grid-row: 1 / span 2;
	position: sticky;
	top: 20px;
}

.cc-blog .toc__body {
	column-count: 1;
}

.cc-blog__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.cc-blog__tag {
	padding: 4px 11px;
	border-radius: 99px;
	background: rgba(74, 158, 255, 0.12);
	color: #4a9eff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cc-blog__tag:hover {
	color: #8dc2ff;
}

.cc-blog__title {
	margin: 0 0 18px;
	color: #fff;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.cc-blog__byline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.cc-blog__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border: 2px solid #2a374a;
	border-radius: 50%;
	background: linear-gradient(135deg, #1a2230, #2a374a);
	overflow: hidden;
}

.cc-blog__avatar span {
	color: #00ff92;
	font-size: 16px;
	font-weight: 700;
}

.cc-blog__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cc-blog__avatar--lg {
	width: 72px;
	height: 72px;
}

.cc-blog__avatar--lg span {
	font-size: 24px;
}

.cc-blog__byline-name {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(127, 227, 192, 0.3);
	text-underline-offset: 3px;
}

.cc-blog__byline-name:hover {
	color: #7fe3c0;
}

.cc-blog__byline-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 2px 0 0;
	color: #94a3b8;
	font-size: 12.5px;
}

.cc-blog__cover {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin-bottom: 28px;
	border: 1px solid #2a374a;
	border-radius: 14px;
}

/* Article text */
.cc-blog .entry-content {
	margin: 0;
	color: #c8ced6;
	font-size: 16px;
	line-height: 1.85;
}

.cc-blog .entry-content p,
.cc-blog .entry-content li {
	margin: 0 0 16px;
	color: #c8ced6;
	font-size: 16px;
	line-height: 1.85;
	text-align: left;
}

.cc-blog .entry-content > p:first-of-type {
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.7;
}

.cc-blog .entry-content h2,
.cc-blog .entry-content h3,
.cc-blog .entry-content h4 {
	margin: 36px 0 16px;
	color: #fff;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.cc-blog .entry-content h2 { font-size: 28px; }
.cc-blog .entry-content h3 { font-size: 22px; }
.cc-blog .entry-content h4 { font-size: 18px; }

.cc-blog .entry-content strong { color: #fff; }

.cc-blog .entry-content a {
	color: #7fe3c0;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(127, 227, 192, 0.45);
	text-underline-offset: 3px;
}

.cc-blog .entry-content a:hover { color: #a8f0d6; }

.cc-blog .entry-content ul,
.cc-blog .entry-content ol {
	display: block;
	margin: 0 0 16px;
	padding: 0 0 0 22px;
	line-height: 1.8;
}

.cc-blog .entry-content ul { list-style: disc; }
.cc-blog .entry-content ol { list-style: decimal; }

.cc-blog .entry-content li {
	display: list-item;
	margin: 0;
	padding: 3px 0;
}

.cc-blog .entry-content blockquote,
.cc-blog .entry-content .wp-block-quote {
	margin: 20px 0;
	padding: 18px 22px;
	border: 1px solid #2a374a;
	border-left: 3px solid #00ff92;
	border-radius: 0 12px 12px 0;
	background: radial-gradient(120% 200% at 0% 0%, rgba(0, 255, 146, 0.06), transparent 50%), #111820;
}

.cc-blog .entry-content blockquote p,
.cc-blog .entry-content .wp-block-quote p {
	margin: 0 0 8px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
}

.cc-blog .entry-content blockquote p:last-child { margin-bottom: 0; }

.cc-blog .entry-content cite {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6b7a8d;
	font-size: 13px;
	font-style: normal;
}

.cc-blog .entry-content cite::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #00ff92;
	flex: none;
}

.cc-blog .cc-table-scroll {
	margin: 16px 0;
	border: 1px solid #2a374a;
	border-radius: 12px;
}

.cc-blog .entry-content table {
	width: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: #111820;
	font-size: 14px;
}

.cc-blog .entry-content table th,
.cc-blog .entry-content table td {
	padding: 10px 14px;
	border: 1px solid #2a374a;
	color: #c8ced6;
	text-align: left;
}

.cc-blog .entry-content table th {
	background: linear-gradient(180deg, #1a2230, #151d28);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom: 2px solid #00ff92;
}

.cc-blog .entry-content table tbody tr:nth-child(even) td {
	background: #0f151d;
}

/* Share */
.cc-blog__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding: 20px 0;
	border-top: 1px solid #1a2230;
}

.cc-blog__share > span {
	margin-right: 4px;
	color: #6b7a8d;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cc-blog__share a,
.cc-blog__copy {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #2a374a;
	border-radius: 8px;
	background: #1a2230;
	color: #c8ced6;
	cursor: pointer;
}

.cc-blog__share a:hover,
.cc-blog__copy:hover,
.cc-blog__copy:focus-visible {
	background: #2a374a;
	color: #fff;
	outline: none;
}

.cc-blog__copy.is-copied {
	border-color: #00ff92;
	color: #00ff92;
}

/* Author card */
.cc-blog__author {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
	margin: 20px 0 36px;
	padding: 24px;
	border: 1px solid #2a374a;
	border-radius: 16px;
	background: #111820;
}

.cc-blog__author-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.cc-blog__author-name {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}

.cc-blog__author-name:hover { color: #7fe3c0; }

.cc-blog__author-mail {
	padding: 3px 10px;
	border-radius: 99px;
	background: rgba(74, 158, 255, 0.12);
	color: #4a9eff;
	font-size: 12px;
	font-weight: 700;
}

.cc-blog__author-bio {
	flex: 1 1 280px;
	margin-top: 8px;
	color: #94a3b8;
	font-size: 14px;
	line-height: 1.7;
}

.cc-blog__author-bio p {
	margin: 0 0 8px;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	text-align: left;
}

/* Related */
.cc-blog__related { margin-bottom: 40px; }

.cc-blog__related h2 {
	margin: 0 0 20px;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.cc-blog__related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 16px;
}

.cc-blog__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #2a374a;
	border-radius: 14px;
	background: #111820;
	color: inherit;
}

.cc-blog__card:hover { border-color: #3a4a60; }

.cc-blog__card img,
.cc-blog__card-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.cc-blog__card-placeholder {
	background: repeating-linear-gradient(45deg, #1a2230, #1a2230 8px, #1e2836 8px, #1e2836 16px);
}

.cc-blog__card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
}

.cc-blog__card-tag {
	color: #4a9eff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cc-blog__card-title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.cc-blog__card-date {
	color: #6b7a8d;
	font-size: 12.5px;
}

@media (max-width: 900px) {
	.cc-blog__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.cc-blog__sidebar {
		grid-column: 1;
		grid-row: 2;
		position: static;
		margin-bottom: 22px;
	}

	.cc-blog__body { grid-row: 3; }

	.cc-blog__title { font-size: 24px; }

	.cc-blog .entry-content h2 { font-size: 20px; }
	.cc-blog .entry-content h3 { font-size: 18px; }
}
