413413 color: #64748b;
414414 font-size: 0.875rem;
415415 }
416- </style>
416+ /* ---- Dark theme (OS default; superseded by the toggle) ---- */
417+ @media (prefers-color-scheme: dark){
418+ :root:not([data-theme="light"]){--card:#1a1f2e; --ink:#e8ecf4; --line:#2a3142; --accent:#6ea6f0;}
419+ :root:not([data-theme="light"]) body{background:#101420;color:#e8ecf4}
420+ :root:not([data-theme="light"]) header{background:linear-gradient(135deg,#1d2740,#101420);border-bottom-color:#2a3142}
421+ :root:not([data-theme="light"]) header .home-link{color:#6ea6f0}
422+ :root:not([data-theme="light"]) h1{color:#e8ecf4}
423+ :root:not([data-theme="light"]) .subtitle{color:#99a2b5}
424+ :root:not([data-theme="light"]) .filter-panel{background:#1a1f2e;border-color:#2a3142}
425+ :root:not([data-theme="light"]) .filter-panel h3{color:#e8ecf4}
426+ :root:not([data-theme="light"]) .search-container input{background:#101420;border-color:#2a3142;color:#e8ecf4}
427+ :root:not([data-theme="light"]) .clear-btn{color:#99a2b5}
428+ :root:not([data-theme="light"]) .clear-btn:hover{color:#e8ecf4}
429+ :root:not([data-theme="light"]) .search-results-count{color:#99a2b5;border-bottom-color:#2a3142}
430+ :root:not([data-theme="light"]) .facet-section{border-bottom-color:#2a3142}
431+ :root:not([data-theme="light"]) .facet-toggle{color:#99a2b5}
432+ :root:not([data-theme="light"]) .facet-actions button{background:#101420;border-color:#2a3142;color:#e8ecf4}
433+ :root:not([data-theme="light"]) .facet-actions button:hover{background:#232a3d}
434+ :root:not([data-theme="light"]) .facet-checkbox:hover{background:rgba(255,255,255,.04)}
435+ :root:not([data-theme="light"]) .facet-count{color:#99a2b5}
436+ :root:not([data-theme="light"]) .active-filters{background:rgba(251,191,36,.12);border-color:#fbbf24}
437+ :root:not([data-theme="light"]) .btn-reset{background:#101420;border-color:#fbbf24;color:#e8ecf4}
438+ :root:not([data-theme="light"]) .btn-reset:hover{background:rgba(251,191,36,.15)}
439+ :root:not([data-theme="light"]) .filter-tag{background:#101420;border-color:#2a3142;color:#e8ecf4}
440+ :root:not([data-theme="light"]) .filter-tag-remove{color:#99a2b5}
441+ :root:not([data-theme="light"]) .filter-tag-remove:hover{color:#f87171}
442+ :root:not([data-theme="light"]) .umap-link{background:#1a1f2e;border-color:#6ea6f0}
443+ :root:not([data-theme="light"]) .umap-link h2{color:#6ea6f0}
444+ :root:not([data-theme="light"]) .umap-link p{color:#99a2b5}
445+ :root:not([data-theme="light"]) .umap-link a{background:#6ea6f0;color:#101420}
446+ :root:not([data-theme="light"]) .umap-link a:hover{background:#8fbcf5}
447+ :root:not([data-theme="light"]) .community-card{background:#1a1f2e;border-color:#2a3142}
448+ :root:not([data-theme="light"]) .community-card h2{color:#6ea6f0}
449+ :root:not([data-theme="light"]) .community-card .description{color:#99a2b5}
450+ :root:not([data-theme="light"]) .badge-category{background:#232a3d;color:#cbd5e1}
451+ :root:not([data-theme="light"]) .badge-member-count{background:#232a3d;color:#cbd5e1}
452+ :root:not([data-theme="light"]) footer{border-top-color:#2a3142;color:#99a2b5}
453+ }
454+ :root[data-theme="dark"]{--card:#1a1f2e; --ink:#e8ecf4; --line:#2a3142; --accent:#6ea6f0;}
455+ :root[data-theme="dark"] body{background:#101420;color:#e8ecf4}
456+ :root[data-theme="dark"] header{background:linear-gradient(135deg,#1d2740,#101420);border-bottom-color:#2a3142}
457+ :root[data-theme="dark"] header .home-link{color:#6ea6f0}
458+ :root[data-theme="dark"] h1{color:#e8ecf4}
459+ :root[data-theme="dark"] .subtitle{color:#99a2b5}
460+ :root[data-theme="dark"] .filter-panel{background:#1a1f2e;border-color:#2a3142}
461+ :root[data-theme="dark"] .filter-panel h3{color:#e8ecf4}
462+ :root[data-theme="dark"] .search-container input{background:#101420;border-color:#2a3142;color:#e8ecf4}
463+ :root[data-theme="dark"] .clear-btn{color:#99a2b5}
464+ :root[data-theme="dark"] .clear-btn:hover{color:#e8ecf4}
465+ :root[data-theme="dark"] .search-results-count{color:#99a2b5;border-bottom-color:#2a3142}
466+ :root[data-theme="dark"] .facet-section{border-bottom-color:#2a3142}
467+ :root[data-theme="dark"] .facet-toggle{color:#99a2b5}
468+ :root[data-theme="dark"] .facet-actions button{background:#101420;border-color:#2a3142;color:#e8ecf4}
469+ :root[data-theme="dark"] .facet-actions button:hover{background:#232a3d}
470+ :root[data-theme="dark"] .facet-checkbox:hover{background:rgba(255,255,255,.04)}
471+ :root[data-theme="dark"] .facet-count{color:#99a2b5}
472+ :root[data-theme="dark"] .active-filters{background:rgba(251,191,36,.12);border-color:#fbbf24}
473+ :root[data-theme="dark"] .btn-reset{background:#101420;border-color:#fbbf24;color:#e8ecf4}
474+ :root[data-theme="dark"] .btn-reset:hover{background:rgba(251,191,36,.15)}
475+ :root[data-theme="dark"] .filter-tag{background:#101420;border-color:#2a3142;color:#e8ecf4}
476+ :root[data-theme="dark"] .filter-tag-remove{color:#99a2b5}
477+ :root[data-theme="dark"] .filter-tag-remove:hover{color:#f87171}
478+ :root[data-theme="dark"] .umap-link{background:#1a1f2e;border-color:#6ea6f0}
479+ :root[data-theme="dark"] .umap-link h2{color:#6ea6f0}
480+ :root[data-theme="dark"] .umap-link p{color:#99a2b5}
481+ :root[data-theme="dark"] .umap-link a{background:#6ea6f0;color:#101420}
482+ :root[data-theme="dark"] .umap-link a:hover{background:#8fbcf5}
483+ :root[data-theme="dark"] .community-card{background:#1a1f2e;border-color:#2a3142}
484+ :root[data-theme="dark"] .community-card h2{color:#6ea6f0}
485+ :root[data-theme="dark"] .community-card .description{color:#99a2b5}
486+ :root[data-theme="dark"] .badge-category{background:#232a3d;color:#cbd5e1}
487+ :root[data-theme="dark"] .badge-member-count{background:#232a3d;color:#cbd5e1}
488+ :root[data-theme="dark"] footer{border-top-color:#2a3142;color:#99a2b5}
489+ @media (prefers-reduced-motion: reduce){
490+ *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
491+ }
492+ </style>
417493</head>
418494<body>
419495 <header>
@@ -519,8 +595,8 @@ <h3>Metal Relevance</h3>
519595 <!-- Right side: Community grid -->
520596 <div class="content-area">
521597 <div class="umap-link">
522- <h2>📊 Explore Community Relationships</h2>
523- <p>View the UMAP projection of all communities based on their taxonomic composition embeddings from KG-Microbe.</p>
598+ <h2>Explore Community Relationships</h2>
599+ <p>View the PaCMAP projection of all communities based on their taxonomic composition embeddings from KG-Microbe.</p>
524600 <a href="community_umap.html">View Community Embedding Space →</a>
525601 </div>
526602
@@ -9155,5 +9231,6 @@ <h2>m-CAFEs Brachypodium Reduced Complexity Consortia</h2>
91559231 // Initialize facets when page loads
91569232 initializeFacets();
91579233 </script>
9234+ <script src="theme-toggle.js"></script>
91589235</body>
91599236</html>
0 commit comments