﻿.blog-header {
	position: relative;	
	min-height: 60vh;
	margin-bottom: 1rem;
	border: 1px solid rgba(255,255,255,.06);
	overflow: hidden;
	background: #111;
	display: flex;
	align-items: stretch;	
}

.blog-header-media {
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	position: absolute;
	mask-image: linear-gradient(rgba(255, 255, 255, .6) 0%, transparent 100%);
	-webkit-mask-image: linear-gradient(rgba(255, 255, 255, .6) 0%, transparent 100%);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.blog-header-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.blog-header h1 {
	font-size: clamp(34px, 5vw, 58px);
	line-height: .98;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -.03em;
	margin: 0;
}

.blog-summary {
	margin-top: 1rem;
	max-width: 760px;
	font-size: 16px;
	line-height: 1.8;
	color: #d8d8d8;
}


.blog-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 1rem;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #9d9892;
}

	.blog-breadcrumb a {
		color: #9d9892;
		text-decoration: none;
	}

		.blog-breadcrumb a:hover {
			color: white;
		}

.blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 1rem;
	align-items: start;
}

.blog-article {
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255,255,255,.06);
	padding: 1.5rem;
}

/*#region content */

.blog-content {
	color: #dfdfdf;
	font-size: 16px;
	line-height: 1.9;
}

	.blog-content > *:first-child {
		margin-top: 0 !important;
	}

	.blog-content > *:last-child {
		margin-bottom: 0 !important;
	}

	.blog-content h1,
	.blog-content h2,
	.blog-content h3,
	.blog-content h4,
	.blog-content h5,
	.blog-content h6 {
		margin: 1.8em 0 .75em;
		color: white;
		font-weight: 900;
		line-height: 1.15;
		text-transform: uppercase;
		letter-spacing: -.02em;
	}

	.blog-content h1 {
		font-size: 34px;
	}

	.blog-content h2 {
		font-size: 28px;
	}

	.blog-content h3 {
		font-size: 22px;
	}

	.blog-content h4,
	.blog-content h5,
	.blog-content h6 {
		font-size: 18px;
	}

	.blog-content p {
		margin-bottom: 1.2em;
		color: #d5d5d5;
	}

	.blog-content a {
		color: white;
		text-decoration: none;
		border-bottom: 1px solid rgba(205,65,43,.55);
	}

		.blog-content a:hover {
			color: var(--rust-red);
			border-bottom-color: var(--rust-red);
		}

	.blog-content strong {
		color: white;
		font-weight: 800;
	}

	.blog-content ul,
	.blog-content ol {
		margin: 0 0 1.3em;
		padding-left: 1.4rem;
	}

	.blog-content li {
		margin-bottom: .55em;
	}

	.blog-content blockquote {
		margin: 1.8em 0;
		padding: 12px 1rem;
		border-left: 4px solid var(--rust-red);
		background: rgba(205, 65, 43, 0.08);
		color: #f0f0f0;
		font-style: italic;
	}

	.blog-content hr {
		border: 0;
		border-top: 1px solid rgba(255,255,255,.08);
		margin: 2em 0;
	}

	.blog-content img {
		display: block;
		max-width: 100%;
		height: auto;
		margin: 1.8em auto;
		border: 1px solid rgba(255,255,255,.08);
	}

	.blog-content table {
		width: 100%;
		border-collapse: collapse;
		margin: 1.8em 0;
		background: rgba(255,255,255,.02);
		border: 1px solid rgba(255,255,255,.08);
	}

	.blog-content th,
	.blog-content td {
		padding: 12px 14px;
		text-align: left;
		border-bottom: 1px solid rgba(255,255,255,.06);
	}

	.blog-content th {
		color: white;
		font-size: 13px;
		text-transform: uppercase;
		background: rgba(255,255,255,.04);
	}

	.blog-content pre {
		margin: 1.8em 0;
		padding: 1rem;
		overflow: auto;
		background: #0d0d0d;
		border: 1px solid rgba(255,255,255,.08);
	}

	.blog-content code {
		font-family: Consolas, Monaco, monospace;
	}

	.blog-content :not(pre) > code {
		padding: 2px 6px;
		background: rgba(255,255,255,.06);
		border: 1px solid rgba(255,255,255,.06);
		color: white;
	}

/*#endregion */

/*#region sidebar */

.blog-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: sticky;
	top: 1rem;
}

.blog-side-card {
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255,255,255,.06);
	padding: 1rem;
}

.blog-side-label {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--rust-red);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.blog-side-card h2 {
	font-size: 22px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.blog-side-card p {
	color: #a9a39d;
	font-size: 14px;
	line-height: 1.7;
}

.blog-side-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 1rem;
}

	.blog-side-actions > a {
		text-decoration: none;
	}

.blog-toc > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.blog-toc li {
	border-left: 2px solid rgba(255,255,255,.12);
	padding-left: 10px;
}

	.blog-toc li.h3 {
		margin-left: 12px;
	}

.blog-toc a {
	display: block;
	color: #c2bbb3;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.5;
	transition: color 200ms, border-color 200ms;
}

	.blog-toc a:hover {
		color: white;
	}

.blog-toc-empty {
	font-size: 13px;
	color: #9d9892;
}


.blog-share {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.blog-share-btn {
	width: 100%;
	min-height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 7px;
	padding: 0 12px;
	background: #111111;
	border: 1px solid #202020;
	color: #f2f2f2;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 180ms, border-color 180ms, color 180ms;
}

	.blog-share-btn > svg {
		flex: 0 0 auto;
	}

#CopyBlogLink {
	background: #13171a;
	border-color: #273038;
	color: #7fbde7;
}

	#CopyBlogLink:hover {
		background: #182026;
		border-color: #3a4956;
	}

.share-x {
	background: #101010;
	border-color: #222222;
	color: #ffffff;
}

	.share-x:hover {
		background: #171717;
		border-color: #323232;
	}

.share-reddit {
	background: #1a1411;
	border-color: #3a2418;
	color: #ff6a33;
}

	.share-reddit:hover {
		background: #221813;
		border-color: #5a311e;
		color: #ff7b4a;
	}

.blog-copy-feedback {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	color: #9d9892;
	min-height: 16px;
}

.blog-related {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.blog-related > a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	background: #141414;
	border: 1px solid #1f1f1f;
	text-decoration: none;
	transition: background-color 200ms, border-color 200ms, transform 200ms;
}

	.blog-related > a:hover {
		background: #1a1a1a;
		border-color: rgba(205,65,43,.45);
		transform: translateY(-1px);
	}

	.blog-related > a > strong {
		color: white;
		font-size: 13px;
		line-height: 1.5;
	}

	.blog-related > a > span {
		color: #9d9892;
		font-size: 12px;
		line-height: 1.6;
		display: -webkit-box;
		max-width: 50ch;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

/*#endregion */

@media (max-width: 1010px) {
	.blog-layout {
		grid-template-columns: 1fr;
	}

	.blog-sidebar {
		position: static;
	}

	.blog-article,
	.blog-header {
		padding: 1.25rem;
	}

	.blog-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {

	.blog-header-content {
		padding: 1.1rem;
	}

	.blog-header-media {
		background-attachment: scroll;
		background-position: center top;
	}

	.blog-header h1 {
		font-size: 34px;
	}

	.blog-summary {
		font-size: 14px;
		line-height: 1.7;
	}

	.blog-content {
		font-size: 15px;
	}

		.blog-content h1 {
			font-size: 28px;
		}

		.blog-content h2 {
			font-size: 24px;
		}

		.blog-content h3 {
			font-size: 20px;
		}
}