/* Hide any mermaid-related errors, attribution, footer */
.mermaid-wrap .error,
.mermaid-wrap .alert,
.mermaid-wrap [class*="error"],
.mermaid-wrap [class*="alert"],
.mermaid-wrap [class*="attribution"],
.mermaid-wrap [class*="footer"],
.mermaid-wrap .mermaid-version,
.mermaid-wrap [class*="version"],
.mermaid-alert,
.mermaid-error {
  display: none !important;
  visibility: hidden !important;
}

/* Also hide any text that looks like mermaid version info */
[data-mermaid]::after,
.mermaid-src::after {
  display: none !important;
}

/* Hide any inline error in mermaid display */
.mermaid-display svg + div,
.mermaid-display div.error {
  display: none !important;
}

/* Ensure mermaid container has no overflow issues */
.mermaid-wrap {
  overflow: hidden;
  position: relative;
}

.mermaid-wrap svg {
  display: block;
}

/* Hide any p > strong that contains error-like content */
p > strong:contains('Error'),
p > strong:contains('error') {
  display: none;
}

/* Footer 备案链接样式 */
.footer_other .footer_custom_text a,
#footer .footer_custom_text a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer_other .footer_custom_text a:hover,
#footer .footer_custom_text a:hover {
  color: #ffffff !important;
}

.footer_other .footer_custom_text a:visited,
#footer .footer_custom_text a:visited {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Footer 背景色 - 深蓝灰，优雅不突兀 */
#footer {
  background-color: #1e293b !important;
  background-image: none !important;
}

.footer_other .footer_custom_text a:hover,
#footer .footer_custom_text a:hover {
  color: #ffffff !important;
}

.footer_other .footer_custom_text a:visited,
#footer .footer_custom_text a:visited {
  color: rgba(255, 255, 255, 0.75) !important;
}