diff --git a/docs/architecture.md b/docs/architecture.md
index 3bb5ac4b..c0cceae1 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -10,7 +10,7 @@ Traditional object-oriented design stores data as arrays of objects: `List
Stateful O1 Updates] -->|Maintains state across| Span
@@ -202,7 +202,7 @@ else
CalculateScalar(source, output);
```
-``` mermaid
+```mermaid
graph TD
Start{JIT Hardware Detection}
diff --git a/index.html b/index.html
index 2d36d830..6b68ba62 100644
--- a/index.html
+++ b/index.html
@@ -257,12 +257,28 @@
.sidebar .search .clear-btn {
color: #8b949e;
}
+ /* Mermaid diagram styling for dark theme */
+ .mermaid {
+ background: transparent !important;
+ text-align: center;
+ margin: 1em 0;
+ }