/* Article page styles (shared by all pre-rendered blog posts) */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9rem 2rem 4rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 3.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.back-btn:hover {
  color: var(--accent-cyan);
  transform: translateX(-4px);
}

.article-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.article-title {
  font-size: 2.5rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-meta span i {
  color: var(--accent-cyan);
}

/* Markdown rendering styles */
.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body a {
  color: var(--accent-cyan);
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.article-body a:hover {
  color: var(--accent-blue);
}

/* Repo Badges */
.article-body a.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95em;
  transition: var(--transition-smooth);
}

.article-body a.repo-link i {
  color: var(--text-primary);
  font-size: 1.05em;
  transition: var(--transition-smooth);
}

.article-body a.repo-link:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.article-body a.repo-link:hover i {
  color: #ffffff;
}

.article-body h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  scroll-margin-top: 5.5rem;
}

.article-body h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  scroll-margin-top: 5.5rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 4px solid var(--accent-cyan);
  background: rgba(14, 165, 233, 0.04);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Image styles inside article */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

/* Inline code style */
.article-body :not(pre) > code {
  background: rgba(148, 163, 184, 0.12);
  color: #e11d48; /* Rose-600 */
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
}

[data-theme="dark"] .article-body :not(pre) > code {
  color: #fb7185;
}

/* Pre / Code block styles */
.article-body pre {
  position: relative;
  background: #1e293b !important; /* Force slate-800 */
  border-radius: 12px;
  padding: 2.5rem 1.25rem 1.25rem !important; /* Top padding for window buttons */
  margin: 1.75rem 0;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* macOS-style window dots */
.article-body pre::before {
  content: '';
  position: absolute;
  top: 0.85rem;
  left: 1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444; /* Red */
  box-shadow: 18px 0 0 #f59e0b, 36px 0 0 #10b981; /* Yellow and Green */
}

.article-body pre code {
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  font-size: 0.9em;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-all;
}

/* Mermaid diagram container */
.mermaid {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  cursor: zoom-in;
}

/* Copy Code Button */
.copy-code-btn {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 10;
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

.copy-code-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

/* Scroll progress bar */
#progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 101;
}

#progress-bar {
  height: 100%;
  background: var(--gradient-main);
  width: 0%;
  transition: width 0.1s ease;
}

/* Blog Layout & Sidebar Grid */
.blog-layout {
  display: grid;
  grid-template-columns: 8fr 3.2fr;
  gap: 2.5rem;
  align-items: start;
}

.article-main-column {
  min-width: 0; /* Prevents code blocks from stretching grid */
}

.blog-sidebar {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sidebar-card h4 {
  font-size: 1.05rem;
  font-family: var(--font-header);
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-card h4 i {
  color: var(--accent-cyan);
}

.sidebar-post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.sidebar-post-item a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
}

.sidebar-post-item a:hover {
  background: rgba(14, 165, 233, 0.05);
  color: var(--accent-cyan);
  padding-left: 0.9rem;
}

.sidebar-post-item.active a {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-cyan);
  font-weight: 600;
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 8px 8px 0;
}

.sidebar-post-date {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Share / newsletter / comments */
.share-box {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-box .share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-box .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
}

.newsletter-box {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  text-align: center;
}

.newsletter-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.newsletter-box h3 i { color: var(--accent-cyan); }

.newsletter-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  min-width: 250px;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.comments-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.comments-section h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.comments-section h3 i { color: var(--accent-cyan); }

/* Tag badges in article meta */
.article-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.article-tags .project-badge { font-size: 0.75rem; }

/* Zoom modal */
#zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

#zoom-content {
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

/* GFM Alert styles */
.alert {
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--text-muted);
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.06);
}

.alert-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: capitalize;
}

.alert-content {
  font-size: 0.98rem;
  line-height: 1.6;
}

.alert-content p:last-child {
  margin-bottom: 0;
}

/* Modifiers */
.alert-note {
  border-left-color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.05);
}
.alert-note .alert-title {
  color: var(--accent-cyan);
}

.alert-tip {
  border-left-color: #10b981; /* Emerald */
  background: rgba(16, 185, 129, 0.05);
}
.alert-tip .alert-title {
  color: #10b981;
}

.alert-important {
  border-left-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.05);
}
.alert-important .alert-title {
  color: var(--accent-purple);
}

.alert-warning {
  border-left-color: #f59e0b; /* Amber */
  background: rgba(245, 158, 11, 0.05);
}
.alert-warning .alert-title {
  color: #f59e0b;
}

.alert-caution {
  border-left-color: #ef4444; /* Red */
  background: rgba(239, 68, 68, 0.05);
}
.alert-caution .alert-title {
  color: #ef4444;
}

/* Cover Image styles */
.article-cover-frame {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-card);
}

.article-cover-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .article-container {
    padding: 7rem 1rem 3rem;
  }
  .article-card {
    padding: 1.75rem;
    border-radius: 16px;
  }
  .article-title {
    font-size: 1.85rem;
  }
}

/* eBook Hierarchy Sidebar Styles */
.ebook-sidebar-scroll {
  max-height: calc(100vh - 14rem);
  overflow-y: auto;
  padding-right: 0.4rem;
}

/* Custom scrollbar for eBook sidebar */
.ebook-sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}
.ebook-sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.ebook-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
}

.sidebar-chapter {
  margin-bottom: 1rem;
}

.sidebar-chapter:last-child {
  margin-bottom: 0;
}

.chapter-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Hide default browser marker */
}

.chapter-title::-webkit-details-marker {
  display: none;
}

.chapter-title::before {
  content: '\f02d'; /* FontAwesome open book icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-cyan);
}

.chapter-title::after {
  content: '\f107'; /* FontAwesome chevron down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.sidebar-chapter[open] .chapter-title::after {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.chapter-pages {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chapter-pages .sidebar-post-item a {
  border-left: 2px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  padding: 0.4rem 0.75rem 0.4rem 1.25rem;
}

.chapter-pages .sidebar-post-item a:hover {
  border-left-color: var(--accent-cyan);
  padding-left: 1.4rem;
}

.chapter-pages .sidebar-post-item.active a {
  border-left-color: var(--accent-cyan);
  border-left-width: 3px;
  background: rgba(14, 165, 233, 0.06);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   Table of Contents (TOC) & Scholarly Citation Enhancements
   ========================================================================== */

/* Sidebar Sticky TOC */
.article-toc-card {
  max-height: calc(100vh - 12rem);
  overflow-y: auto;
  padding: 1.25rem 1.4rem;
}

.article-toc-card h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.article-toc-card h4 i {
  color: var(--accent-cyan);
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toc-item {
  margin: 0;
}

.toc-link {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.toc-link:hover {
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.05);
  padding-left: 0.85rem;
}

.toc-link.active {
  color: var(--accent-cyan);
  font-weight: 600;
  background: rgba(14, 165, 233, 0.08);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 6px 6px 0;
  padding-left: 0.85rem;
}

/* Mobile Collapsible TOC */
.mobile-toc {
  display: none;
  margin-bottom: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(10px);
}

.mobile-toc summary {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  list-style: none;
}

.mobile-toc summary::-webkit-details-marker {
  display: none;
}

.mobile-toc summary::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.mobile-toc[open] summary::after {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.mobile-toc-list {
  list-style: none;
  padding: 0.75rem 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 0.75rem;
}

.mobile-toc-list li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.mobile-toc-list li a:hover {
  color: var(--accent-cyan);
}

@media (max-width: 1024px) {
  .mobile-toc {
    display: block;
  }
}

/* Scholarly Citations & Footnotes */
.citation-ref {
  font-size: 0.78em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.15rem;
  font-family: var(--font-header), sans-serif;
}

.citation-link {
  color: var(--accent-cyan) !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.08);
  transition: all 0.2s ease;
  display: inline-block;
}

.citation-link:hover {
  background: rgba(14, 165, 233, 0.2);
  transform: translateY(-1px);
  color: #38bdf8 !important;
}

.citation-highlight {
  outline: 2px solid var(--accent-cyan);
  background: rgba(14, 165, 233, 0.25) !important;
  border-radius: 4px;
  animation: citationPulse 1.8s ease;
}

@keyframes citationPulse {
  0% { transform: scale(1.15); box-shadow: 0 0 10px var(--accent-cyan); }
  50% { transform: scale(1); box-shadow: 0 0 4px var(--accent-cyan); }
  100% { transform: scale(1); box-shadow: none; }
}

/* References Section */
.references-list {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.citation-item {
  margin-bottom: 0.85rem;
  line-height: 1.6;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  scroll-margin-top: 6rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.citation-item:target {
  background: rgba(14, 165, 233, 0.1);
  border-left-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.citation-backlink {
  color: var(--accent-cyan);
  text-decoration: none !important;
  font-weight: bold;
  margin-left: 0.45rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.citation-backlink:hover {
  transform: translateX(-2px);
  color: var(--accent-blue);
}

/* Floating Citation Tooltip / Hovercard */
.citation-tooltip {
  position: absolute;
  z-index: 1000;
  max-width: 380px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(6px);
}

.citation-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.citation-tooltip strong {
  color: var(--accent-cyan);
  margin-right: 0.35rem;
}

.citation-tooltip a {
  color: var(--accent-cyan);
  word-break: break-all;
}

/* ==========================================================================
   ByteByteGo-Style High-Contrast Mermaid Arrows & Label Badges
   ========================================================================== */
.mermaid {
  text-align: center;
  margin: 2rem 0;
  overflow-x: auto;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Subgraph Section Headings (Cluster Titles) */
.mermaid .cluster rect {
  rx: 8px !important;
  ry: 8px !important;
  stroke-width: 2px !important;
}

.mermaid .cluster text,
.mermaid .cluster-label text,
.mermaid .cluster-label span {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  fill: #0369a1 !important;
  color: #0369a1 !important;
  letter-spacing: 0.02em !important;
}

/* Crisp 2px High-Contrast Arrows */
.mermaid .edgePath path,
.mermaid path.flowchart-link {
  stroke: #0284c7 !important;
  stroke-width: 2.2px !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mermaid marker path,
.mermaid #flowchart-pointEnd,
.mermaid #flowchart-pointStart {
  fill: #0284c7 !important;
  stroke: #0284c7 !important;
}

/* High-Contrast Pill Badges for Arrow Captions */
.mermaid .edgeLabel,
.mermaid .edgeLabel span,
.mermaid .edgeLabel p {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  border: 1.5px solid #0284c7 !important;
  box-shadow: 0 2px 5px rgba(2, 132, 199, 0.15) !important;
  letter-spacing: 0.01em;
}

/* Dark Mode Overrides */
[data-theme="dark"] .mermaid .cluster text,
[data-theme="dark"] .mermaid .cluster-label text,
[data-theme="dark"] .mermaid .cluster-label span {
  fill: #38bdf8 !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] .mermaid .edgePath path,
[data-theme="dark"] .mermaid path.flowchart-link {
  stroke: #38bdf8 !important;
}

[data-theme="dark"] .mermaid marker path {
  fill: #38bdf8 !important;
  stroke: #38bdf8 !important;
}

[data-theme="dark"] .mermaid .edgeLabel,
[data-theme="dark"] .mermaid .edgeLabel span,
[data-theme="dark"] .mermaid .edgeLabel p {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border: 1.5px solid #38bdf8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}


