/* Editorial blog article — scoped so the rest of the public site stays all-caps Barlow. */

.blog-article-crumbs {
	margin: 0 0 28px;
}

.blog-article-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.blog-article-crumbs li {
	display: flex;
	align-items: center;
	font-family: Barlow, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #adb0bc;
}

.blog-article-crumbs li + li::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	margin: 0 10px;
	border-radius: 50%;
	background: #45f882;
}

.blog-article-crumbs a {
	color: #adb0bc;
}

.blog-article-crumbs a:hover {
	color: #ffbe18;
}

.blog-article-item {
	overflow: hidden;
	border: 1px solid #232a30;
	border-radius: 8px;
	background: #182029;
}

.blog-article-hero {
	position: relative;
	min-height: 420px;
	background: #0f161b;
}

.blog-article-hero--plain {
	min-height: 0;
}

.blog-article-hero-media {
	position: absolute;
	inset: 0;
}

.blog-article-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-article-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(15, 22, 27, 0.96) 0%,
		rgba(15, 22, 27, 0.55) 48%,
		rgba(15, 22, 27, 0.2) 100%
	);
}

.blog-article-hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 420px;
	padding: 40px 44px 36px;
}

.blog-article-hero--plain .blog-article-hero-content {
	min-height: 0;
	padding-top: 36px;
}

.blog-article-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.blog-article-chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #45f882;
	border-radius: 2px;
	background: rgba(69, 248, 130, 0.12);
	color: #45f882;
	font-family: Barlow, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1;
	text-transform: uppercase;
}

.blog-article-chip:hover {
	background: #45f882;
	color: #0f161b;
}

.blog-article-chip--featured {
	border-color: #ffbe18;
	background: rgba(255, 190, 24, 0.14);
	color: #ffbe18;
}

.blog-article-chip--featured:hover {
	background: #ffbe18;
	color: #0f161b;
}

.blog-article-title,
.blog-article h1.blog-article-title {
	margin: 0 0 22px;
	color: #fff;
	font-family: Barlow, sans-serif;
	font-size: 48px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.15;
	text-transform: none;
}

.blog-article-byline {
	display: flex;
	align-items: center;
	gap: 14px;
}

.blog-article-avatar-link {
	flex: 0 0 auto;
	line-height: 0;
}

.blog-article-avatar {
	width: 40px;
	height: 40px;
	border: 2px solid #45f882;
	border-radius: 50%;
	object-fit: cover;
}

.blog-article-byline-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.blog-article-byline-author {
	font-family: Barlow, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #adb0bc;
}

.blog-article-byline-author a {
	color: #fff;
}

.blog-article-byline-author a:hover {
	color: #45f882;
}

.blog-article-byline-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: Barlow, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #adb0bc;
}

.blog-article-byline-stats li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.blog-article-byline-stats i {
	color: #45f882;
}

.blog-article-byline-stats a {
	color: #adb0bc;
}

.blog-article-byline-stats a:hover {
	color: #45f882;
}

.blog-article-likes .feedback-item {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.blog-article-likes .like-icon {
	cursor: pointer;
	color: #adb0bc;
}

.blog-article-likes .like-icon:hover,
.blog-article-likes .like-icon.liked {
	color: #45f882;
}

.blog-article-panel {
	padding: 36px 44px 40px;
}

.blog-article .blog-lead,
.blog-article-panel > .blog-lead {
	margin: 0 0 28px;
	max-width: 70ch;
	color: #e8e9ee;
	font-family: Poppins, sans-serif;
	font-size: 1.2em;
	font-weight: 400;
	line-height: 1.7;
}

/* Prose — beat global h1–h6 uppercase and Tailwind list reset */
.blog-article .from-markdown {
	max-width: 70ch;
	color: #c5c8d0;
	font-family: Poppins, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.8;
}

.blog-article .from-markdown > *:first-child {
	margin-top: 0;
}

.blog-article .from-markdown h1,
.blog-article .from-markdown h2,
.blog-article .from-markdown h3,
.blog-article .from-markdown h4,
.blog-article .from-markdown h5,
.blog-article .from-markdown h6 {
	margin: 2.4em 0 0.7em;
	color: #fff;
	font-family: Barlow, sans-serif;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: none;
}

.blog-article .from-markdown h1 {
	font-size: 1.75rem;
}

.blog-article .from-markdown h2 {
	padding-left: 14px;
	border-left: 3px solid #45f882;
	font-size: 1.5rem;
}

.blog-article .from-markdown h3 {
	font-size: 1.2rem;
}

.blog-article .from-markdown h4 {
	font-size: 1.05rem;
}

.blog-article .from-markdown h5,
.blog-article .from-markdown h6 {
	font-size: 1rem;
	color: #e8e9ee;
}

.blog-article .from-markdown p {
	margin: 0 0 1.25em;
	color: #c5c8d0;
	font-family: Poppins, sans-serif;
	font-size: inherit;
	line-height: 1.8;
}

.blog-article .from-markdown > p:first-of-type {
	color: #d5d7de;
	font-size: 1.06em;
}

.blog-article .from-markdown a {
	color: #45f882;
	text-decoration: underline;
	text-decoration-color: rgba(69, 248, 130, 0.35);
	text-underline-offset: 3px;
}

.blog-article .from-markdown a:hover {
	color: #ffbe18;
	text-decoration-color: #ffbe18;
}

.blog-article .from-markdown ul,
.blog-article .from-markdown ol {
	margin: 0 0 1.35em;
	padding: 0 0 0 1.35em;
}

.blog-article .from-markdown ul {
	list-style: disc;
}

.blog-article .from-markdown ol {
	list-style: decimal;
}

.blog-article .from-markdown ul ul {
	list-style: circle;
	margin: 0.4em 0 0.6em;
}

.blog-article .from-markdown li {
	margin: 0.35em 0;
	padding-left: 0.25em;
	color: #c5c8d0;
}

.blog-article .from-markdown li::marker {
	color: #45f882;
}

.blog-article .from-markdown li p {
	margin-bottom: 0.4em;
}

.blog-article .from-markdown blockquote {
	margin: 1.75em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid #45f882;
	background: transparent;
	color: #e8e9ee;
	font-family: Poppins, sans-serif;
	font-size: 1.2em;
	font-style: italic;
	font-weight: 400;
	line-height: 1.65;
}

.blog-article .from-markdown blockquote p {
	margin: 0 0 0.6em;
	color: inherit;
	font-size: inherit;
	font-style: inherit;
}

.blog-article .from-markdown blockquote p:last-child {
	margin-bottom: 0;
}

.blog-article .from-markdown img,
.blog-article .from-markdown figure {
	display: block;
	max-width: 100%;
	margin: 1.75em 0;
	border-radius: 8px;
}

.blog-article .from-markdown figure img {
	margin: 0;
}

.blog-article .from-markdown figcaption,
.blog-article .from-markdown img + em,
.blog-article .from-markdown img + small {
	display: block;
	margin-top: 0.6em;
	color: #8b8f9c;
	font-size: 0.85em;
	font-style: italic;
	text-align: center;
}

.blog-article .from-markdown hr {
	margin: 2.25em 0;
	border: 0;
	border-bottom: 1px solid #323c46;
}

.blog-article .from-markdown table {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
	font-size: 0.95em;
}

.blog-article .from-markdown th,
.blog-article .from-markdown td {
	padding: 10px 14px;
	border: 1px solid #323c46;
	text-align: left;
}

.blog-article .from-markdown th {
	background: #12181e;
	color: #fff;
	font-family: Barlow, sans-serif;
	font-weight: 700;
	text-transform: none;
}

.blog-article .from-markdown td {
	background: rgba(15, 22, 27, 0.45);
	color: #c5c8d0;
}

.blog-article .from-markdown code {
	padding: 0.15em 0.4em;
	border-radius: 4px;
	background: #0f161b;
	color: #45f882;
	font-size: 0.88em;
}

.blog-article .from-markdown pre {
	overflow-x: auto;
	margin: 1.5em 0;
	padding: 16px 18px;
	border: 1px solid #232a30;
	border-radius: 8px;
	background: #0f161b;
}

.blog-article .from-markdown pre code {
	padding: 0;
	background: transparent;
	color: #c5c8d0;
}

.blog-article .from-markdown strong {
	color: #e8e9ee;
	font-weight: 600;
}

.blog-article .blog-post-bottom .share {
	text-transform: uppercase;
}

@media (min-width: 992px) {
	.blog-article .blog-sidebar {
		position: sticky;
		top: 6rem;
		margin-left: 0.75rem;
	}
}

@media (max-width: 991px) {
	.blog-article-title,
	.blog-article h1.blog-article-title {
		font-size: 36px;
	}

	.blog-article-hero,
	.blog-article-hero-content {
		min-height: 340px;
	}

	.blog-article-hero-content,
	.blog-article-panel {
		padding-left: 28px;
		padding-right: 28px;
	}
}

@media (max-width: 575px) {
	.blog-article-title,
	.blog-article h1.blog-article-title {
		font-size: 28px;
	}

	.blog-article-hero,
	.blog-article-hero-content {
		min-height: 280px;
	}

	.blog-article-hero-content,
	.blog-article-panel {
		padding: 24px 20px 28px;
	}

	.blog-article .from-markdown {
		font-size: 16px;
	}

	.blog-article .from-markdown h2 {
		font-size: 1.3rem;
	}
}

/* —— Comments drawer (blog posts only) —— */

body.blog-comments-open {
	overflow: hidden;
}

.blog-comments-summary {
	margin: 0 0 24px;
	border: 1px solid #232a30;
	border-radius: 8px;
	background: #182029;
	overflow: hidden;
}

.blog-comments-summary-btn {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 20px 24px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	text-align: left;
	transition: background 0.25s ease;
}

.blog-comments-summary-btn:hover {
	background: rgba(69, 248, 130, 0.06);
}

.blog-comments-summary-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(69, 248, 130, 0.35);
	border-radius: 50%;
	background: rgba(69, 248, 130, 0.1);
	color: #45f882;
	font-size: 18px;
}

.blog-comments-summary-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.blog-comments-summary-count {
	font-family: Barlow, sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

.blog-comments-summary-cta {
	font-family: Poppins, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #45f882;
}

/* Closed = display:none so markup never paints in page flow */
.blog-comments-drawer {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10060;
	pointer-events: none;
}

.blog-comments-drawer.is-open {
	display: block;
	pointer-events: auto;
}

.blog-comments-backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(4, 8, 14, 0.72);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.blog-comments-drawer.is-open .blog-comments-backdrop {
	opacity: 1;
}

/* Panel is fixed to the viewport (works even if overlay parent were clipped) */
.blog-comments-panel {
	position: fixed;
	display: flex;
	flex-direction: column;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(400px, 92vw);
	max-width: 100%;
	background: #0f161b;
	border: 1px solid #232a30;
	border-right: 0;
	border-top: 0;
	border-bottom: 0;
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
	color: #fff;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
	z-index: 1;
}

.blog-comments-drawer.is-open .blog-comments-panel {
	transform: translateX(0);
}

.blog-comments-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 0 0 auto;
	padding: 18px 20px;
	border-bottom: 1px solid #232a30;
	background: #182029;
}

.blog-comments-title {
	margin: 0;
	font-family: Barlow, sans-serif;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

.blog-comments-close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid #323c46;
	border-radius: 6px;
	background: transparent;
	color: #adb0bc;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-comments-close:hover {
	color: #45f882;
	border-color: #45f882;
	background: rgba(69, 248, 130, 0.08);
}

.blog-comments-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 20px;
	-webkit-overflow-scrolling: touch;
}

/* Drawer-scoped tweaks for shared comments partial */
.blog-comments-drawer .comments-wrap-title {
	display: none !important;
}

.blog-comments-drawer .latest-comments {
	margin-bottom: 0;
}

.blog-comments-drawer #comment-list {
	padding-left: 0;
}

.blog-comments-drawer #comment-list::before,
.blog-comments-drawer .timeline-dot {
	display: none;
}

.blog-comments-drawer .add-comment-button {
	margin-left: 0;
}

.blog-comments-drawer .new-comment {
	padding: 12px;
}

.blog-comments-drawer .comments-avatar {
	width: 56px;
	margin-right: 14px;
}

.blog-comments-drawer .comments-box {
	margin-bottom: 20px;
	padding-bottom: 20px;
}

.blog-comments-drawer .comments-text .name {
	font-size: 15px;
	flex-wrap: wrap;
	gap: 6px;
}

.blog-comments-drawer .no-comment {
	margin-bottom: 12px;
}

.blog-comments-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 10050;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 18px;
	border: 1px solid rgba(69, 248, 130, 0.45);
	border-radius: 999px;
	background: #182029;
	color: #45f882;
	font-family: Barlow, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px) scale(0.94);
	transition:
		opacity 0.28s ease,
		transform 0.28s ease,
		visibility 0.28s ease,
		background 0.2s ease,
		color 0.2s ease;
}

.blog-comments-fab.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.blog-comments-fab:hover {
	background: #45f882;
	color: #0f161b;
}

.blog-comments-fab .comment-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(69, 248, 130, 0.18);
	color: inherit;
	font-size: 12px;
}

.blog-comments-fab:hover .comment-count {
	background: rgba(15, 22, 27, 0.18);
}

body.blog-comments-open .blog-comments-fab {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Mobile / tablet: bottom sheet */
@media (max-width: 991px) {
	.blog-comments-panel {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 85vh;
		border-radius: 16px 16px 0 0;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		transform: translateY(100%);
	}

	.blog-comments-drawer.is-open .blog-comments-panel {
		transform: translateY(0);
	}

	.blog-comments-fab {
		right: 16px;
		bottom: 16px;
		min-height: 48px;
		padding: 0 14px;
	}

	.blog-comments-summary-btn {
		padding: 16px 18px;
	}
}
