/* Bluesky embed */
.bsky-feed-container {
	max-height: 400px;
	overflow-y: auto;
}

[data-bs-theme="dark"] .bsky-feed-container {
	background-color: #1a1a1a;
}

bsky-embed::part(avatar),
bsky-embed .avatar,
bsky-embed img[alt*="avatar"],
bsky-embed img[alt*="profile"] {
	display: none !important;
}

.bsky-sidebar-box {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
}

.bsky-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.625rem 0.875rem;
	background-color: #f7f7f7;
	border-bottom: 1px solid #e5e5e5;
}

.bsky-sidebar-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #555;
}

.bsky-sidebar-handle {
	font-size: 0.75rem;
	color: #888;
	text-decoration: none;
}

.bsky-sidebar-handle:hover {
	color: #333;
}

.bsky-sidebar-box .bsky-feed-container {
	padding: 0.5rem 0.25rem;
}

/* Article header */
.article-meta {
	color: #666;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 1.25rem;
}

.article-meta i {
	color: #888;
}

.article-title {
	font-size: 2rem;
	font-weight: 700;
	color: #131417;
	text-align: left;
	line-height: 1.25;
	margin-bottom: 0.75rem;
}

.article-subtitle {
	font-size: 1.125rem;
	font-weight: 500;
	color: #888888;
	margin-bottom: 1.25rem;
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 1.5rem;
}

.article-tag {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #5856D6;
	background-color: rgba(88, 86, 214, 0.08);
	padding: 4px 10px;
	border-radius: 4px;
}

.article-progress {
	margin-bottom: 1.5rem;
}

/* Share sidebar */
.article-sidebar-sticky {
	position: sticky;
	top: 80px;
}

.share-sidebar {
	background-color: #f0f0f0;
	border-radius: 8px;
	padding: 1.5rem;
}

.share-sidebar h6 {
	font-size: 0.85rem;
	font-weight: 700;
	color: #333;
	letter-spacing: 0.5px;
	margin-bottom: 1rem;
}

.share-divider {
	height: 1px;
	background-color: #ddd;
	margin: 1rem 0;
}

.share-link {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #5856D6;
	text-decoration: none;
	padding: 6px 0;
	transition: color 0.2s;
}

.share-link:hover {
	color: #3a38b5;
}

.share-link i {
	width: 16px;
	text-align: center;
}

.share-icons {
	display: flex;
	gap: 10px;
	margin-top: 0.5rem;
}

.share-icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: #5856D6;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 0.875rem;
	transition: background-color 0.2s, transform 0.2s;
}

.share-icon-btn:hover {
	background-color: #3a38b5;
	color: white;
	transform: translateY(-2px);
}

.share-icon-btn.email    { background-color: #585858; }
.share-icon-btn.linkedin { background-color: #0A66C2; }
.share-icon-btn.twitter  { background-color: #000; }
.share-icon-btn.facebook { background-color: #3232ea; }

/* Related articles */
.related-articles-section {
	padding: 3rem 0 4rem;
	border-top: 1px solid #a5a5a540;
}

.related-articles-section h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 2rem;
}

.related-card {
	display: flex;
	flex-direction: column;
}

.related-card-img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 0.875rem;
}

.related-card-meta {
	font-size: 0.8rem;
	color: #666;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0.5rem;
}

.related-card-meta i {
	font-size: 0.75rem;
}

.related-card-category {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #838383;
}

.related-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.5rem;
	text-decoration: none;
	display: block;
}

.related-card-title:hover {
	color: #6d6d6d;
}

.related-card-excerpt {
	font-size: 0.875rem;
	color: #555;
	line-height: 1.55;
	margin-bottom: 0;
}

/* Article page footer */
.article-footer-bar {
	background-color: #131417;
	color: #ccc;
	padding: 2.5rem 0;
}

.article-footer-bar a {
	color: #aaa;
	text-decoration: none;
	font-size: 0.875rem;
}

.article-footer-bar a:hover {
	color: #fff;
}

.article-footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.article-footer-credit {
	font-size: 0.8rem;
	color: #666;
	border-top: 1px solid #2a2a2a;
	padding-top: 1.25rem;
	margin-top: 0.5rem;
}

/* Dark mode support */
[data-bs-theme="dark"] .article-meta {
	color: #999;
}

[data-bs-theme="dark"] .article-meta i {
	color: #888;
}

[data-bs-theme="dark"] .article-title {
	color: #fff;
}

[data-bs-theme="dark"] .article-subtitle {
	color: #aaa;
}

[data-bs-theme="dark"] .article-tag {
	color: #7c7aff;
	background-color: rgba(124, 122, 255, 0.15);
}

[data-bs-theme="dark"] .share-sidebar {
	background-color: #2a2a2a;
}

[data-bs-theme="dark"] .share-sidebar h6 {
	color: #e0e0e0;
}

[data-bs-theme="dark"] .share-divider {
	background-color: #444;
}

[data-bs-theme="dark"] .bsky-sidebar-box {
	border-color: #444;
}

[data-bs-theme="dark"] .bsky-sidebar-header {
	background-color: #2a2a2a;
	border-bottom-color: #444;
}

[data-bs-theme="dark"] .bsky-sidebar-label {
	color: #aaa;
}

[data-bs-theme="dark"] .bsky-sidebar-handle {
	color: #777;
}

[data-bs-theme="dark"] .bsky-sidebar-handle:hover {
	color: #aaa;
}

[data-bs-theme="dark"] .related-card-meta {
	color: #999;
}

[data-bs-theme="dark"] .related-card-category {
	color: #888;
}

[data-bs-theme="dark"] .related-card-title {
	color: #fff;
}

[data-bs-theme="dark"] .related-card-title:hover {
	color: #ccc;
}

[data-bs-theme="dark"] .related-card-excerpt {
	color: #aaa;
}

[data-bs-theme="dark"] .related-articles-section {
	border-top-color: #444;
}

[data-bs-theme="dark"] .related-articles-section h2 {
	color: #fff;
}

[data-bs-theme="dark"] .bg-light {
	background-color: #1a1a1a !important;
}

@media (max-width: 767px) {
	.article-title          { font-size: 1.6rem; }
	.article-sidebar-sticky { position: static; margin-top: 2rem; }
}
