/* ─── Mermaid diagram containers ─────────────────────────────────────────── */

pre.mermaid {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1.75rem 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  text-align: center;
}

pre.mermaid svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}


/* ─── Homepage hero: readable, elegant heading over dark background (e.g. homeimg1.jpg) */

.intro-header .site-heading h1 {
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff !important;
  text-shadow:
    0 0 40px rgba(0, 0, 0, 0.85),
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 1px rgba(0, 0, 0, 1);
}

.intro-header .site-heading .subheading {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 24px rgba(0, 0, 0, 0.8),
    0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Slightly softer shadow in dark mode if theme applies */
[data-theme="dark"] .intro-header .site-heading h1 {
  color: #fff !important;
  text-shadow:
    0 0 40px rgba(0, 0, 0, 0.85),
    0 2px 4px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .intro-header .site-heading .subheading {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}
