/* ═══════════════════════════════════════════════════════════════
   OmicsLab — African Genomics Network Hub CSS
   ═══════════════════════════════════════════════════════════════ */

.nh-page { max-width: 1280px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

.nh-header { text-align: center; margin-bottom: 2rem; }
.nh-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
  background: linear-gradient(135deg, #3fb950, #58a6ff, #bc8cff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 0 0 0.4rem;
}
.nh-subtitle { font-size: 0.88rem; color: var(--text-muted, #8b949e); margin: 0; }

/* Stats strip */
.nh-map-strip {
  display: flex; gap: 0; margin-bottom: 2rem;
  background: var(--bg-card, #161b22); border: 1px solid #21262d; border-radius: 12px;
  overflow: hidden;
}
.nh-map-stat {
  flex: 1; padding: 1rem 0.5rem; text-align: center; border-right: 1px solid #21262d;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.nh-map-stat:last-child { border-right: none; }
.nh-map-stat span:not(.nh-map-n) { font-size: 0.68rem; color: #8b949e; }
.nh-map-n { font-size: 1.3rem; font-weight: 800; color: #3fb950; font-family: var(--font-mono, monospace); }

/* Filters */
.nh-filters { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.nh-filter-row { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.nh-filter-label { font-size: 0.72rem; font-weight: 700; color: #8b949e; min-width: 50px; text-transform: uppercase; letter-spacing: 0.05em; }

.nh-region-btn, .nh-focus-btn {
  padding: 0.25rem 0.65rem; border-radius: 20px; border: 1px solid #30363d;
  background: transparent; color: #8b949e; cursor: pointer; font-size: 0.72rem; font-weight: 600;
  transition: all 0.18s;
}
.nh-region-btn:hover, .nh-focus-btn:hover { border-color: #3fb950; color: #c9d1d9; }
.nh-region-btn.active { background: rgba(63,185,80,0.12); border-color: #3fb950; color: #3fb950; }
.nh-focus-btn.active { background: rgba(88,166,255,0.12); border-color: #58a6ff; color: #58a6ff; }

/* Layout */
.nh-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; margin-bottom: 3rem; }

/* Sidebar */
.nh-inst-sidebar {}
.nh-sidebar-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: #8b949e; margin-bottom: 0.6rem;
}
.nh-inst-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.nh-inst-list::-webkit-scrollbar { width: 4px; }
.nh-inst-list::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }

.nh-inst-card {
  display: block; width: 100%; text-align: left; padding: 0.7rem 0.85rem;
  border: 1px solid; border-radius: 9px; background: var(--bg-card, #161b22);
  cursor: pointer; transition: all 0.18s;
}
.nh-inst-card:hover { background: rgba(255,255,255,0.03); }
.nh-inst-card.active { background: rgba(63,185,80,0.06); }

.nh-inst-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.nh-inst-short { font-weight: 800; font-size: 0.85rem; font-family: var(--font-mono, monospace); }
.nh-inst-country { font-size: 0.65rem; color: #8b949e; }
.nh-inst-name { font-size: 0.72rem; color: #8b949e; margin-bottom: 0.35rem; line-height: 1.35; }
.nh-inst-focus { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.nh-focus-tag {
  padding: 0.12rem 0.45rem; border-radius: 10px; font-size: 0.62rem; font-weight: 600;
  background: rgba(88,166,255,0.1); color: #58a6ff;
}

/* Detail panel */
.nh-detail-panel {
  background: var(--bg-card, #161b22); border: 1px solid #21262d;
  border-radius: 14px; padding: 1.5rem; min-height: 380px;
}
.nh-empty {
  display: flex; align-items: center; justify-content: center;
  height: 200px; color: #8b949e; font-size: 0.85rem;
  text-align: center; max-width: 360px; margin: 0 auto; line-height: 1.6;
}

.nh-detail-header { padding-bottom: 0.85rem; border-bottom: 2px solid; margin-bottom: 1rem; }
.nh-detail-name { font-size: 1.2rem; font-weight: 800; color: #c9d1d9; }
.nh-detail-meta { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.25rem; font-size: 0.8rem; color: #8b949e; }
.nh-detail-type { font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }

.nh-detail-highlight { font-size: 0.84rem; color: #c9d1d9; line-height: 1.65; margin: 0 0 1.25rem; }

.nh-detail-stats { display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.nh-detail-stat { background: #0d1117; border-radius: 8px; padding: 0.65rem 0.9rem; border: 1px solid #21262d; }
.nh-ds-n { font-size: 1.15rem; font-weight: 800; color: #3fb950; font-family: var(--font-mono, monospace); }
.nh-ds-l { font-size: 0.68rem; color: #8b949e; margin-top: 0.15rem; }

.nh-detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.nh-detail-section-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #8b949e; margin-bottom: 0.5rem; }

.nh-focus-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.nh-focus-tag-lg { padding: 0.25rem 0.65rem; border-radius: 20px; font-size: 0.74rem; font-weight: 600; }

.nh-tools { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.nh-tool {
  padding: 0.22rem 0.55rem; border-radius: 5px; font-size: 0.72rem;
  background: rgba(88,166,255,0.1); color: #58a6ff;
  font-family: var(--font-mono, monospace); font-weight: 600;
}

.nh-detail-pi { font-size: 0.78rem; color: #8b949e; margin-top: 0.75rem; }
.nh-detail-pi b { color: #c9d1d9; }
.nh-detail-website { font-size: 0.78rem; color: #8b949e; margin-top: 0.3rem; }

/* Initiatives */
.nh-section-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: #8b949e; margin-bottom: 1rem; margin-top: 2.5rem;
  border-top: 1px solid #21262d; padding-top: 1.5rem;
}
.nh-initiatives-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.85rem; margin-bottom: 0; }
.nh-initiative-card {
  background: var(--bg-card, #161b22); border: 1px solid #21262d;
  border-top: 3px solid; border-radius: 10px; padding: 0.9rem 1rem;
}
.nh-ini-type { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.3rem; }
.nh-ini-name { font-weight: 700; color: #c9d1d9; font-size: 0.9rem; margin-bottom: 0.5rem; }
.nh-ini-desc { font-size: 0.78rem; color: #8b949e; line-height: 1.55; }

/* Training */
.nh-training-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.nh-training-card {
  background: var(--bg-card, #161b22); border: 1px solid #21262d;
  border-left: 3px solid; border-radius: 8px; padding: 0.85rem;
  transition: border-color 0.2s;
}
.nh-training-card:hover { border-color: #3fb950; }
.nh-training-name { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }
.nh-training-desc { font-size: 0.76rem; color: #8b949e; line-height: 1.5; margin-bottom: 0.35rem; }
.nh-training-url { font-size: 0.68rem; color: #30363d; font-family: var(--font-mono, monospace); }

@media (max-width: 900px) {
  .nh-layout { grid-template-columns: 1fr; }
  .nh-inst-list { max-height: 300px; }
  .nh-detail-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nh-map-strip { flex-wrap: wrap; }
  .nh-map-stat { min-width: 45%; border-right: none; border-bottom: 1px solid #21262d; }
  .nh-page { padding: 1.5rem 1rem 3rem; }
}
