@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=Playfair+Display:wght@700;900&display=swap');


:root {
  --navy:   #0A1628;
  --navy2:  #0F2240;
  --teal:   #028090;
  --mint:   #02C39A;
  --alert:  #C0392B;
  --orange: #E07A5F;
  --amber:  #D4A017;
  --blue:   #4A6B82;
  --white:  #FFFFFF;
  --light:  #D0E8F0;
  --muted:  #607D8B;
}



/* ── APP SHELL ───────────────────────────────────── */
#cmp_incubator_app { display: flex; flex-direction: column; width: 100%; height: 600px; }

/* ── HEADER ─────────────────────────────────────── */
.cmp_incubator_header {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 56px;
  background: var(--navy2);
  border-bottom: 2px solid var(--teal);
  z-index: 20; gap: 12px;
}
.cmp_incubator_hdr_left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.cmp_incubator_hdr_badge {
  flex-shrink: 0;
  background: var(--alert); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 2px; text-transform: uppercase;
}
.cmp_incubator_header h1 {
  font-size: 15px; font-weight: 700; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.cmp_incubator_header h1 span { color: var(--mint); }
.cmp_incubator_hdr_right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cmp_incubator_hdr_stats { display: flex; align-items: center; gap: 14px; }
.cmp_incubator_hdr_stat { text-align: center; }
.cmp_incubator_hdr_stat_n { font-size: 14px; font-weight: 700; color: var(--orange); line-height: 1; }
.cmp_incubator_hdr_stat_l { font-size: 8px; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; margin-top: 1px; }
.cmp_incubator_hdr_sep { width: 1px; height: 22px; background: #1E3A52; flex-shrink: 0; }

/* ── MAIN ────────────────────────────────────────── */
#cmp_incubator_main { flex: 1; display: flex; overflow: hidden; position: relative; min-height: 0; background-color: var(--navy2)}

/* ── DIAGRAM ─────────────────────────────────────── */
#cmp_incubator_diagram_wrap {
  flex: 1; position: relative; overflow: hidden; min-width: 0;
  touch-action: manipulation;
}
#cmp_incubator_particle_canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#cmp_incubator_diagram_svg { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 2; }

/* ── LEGEND ──────────────────────────────────────── */
#cmp_incubator_legend {
  position: absolute; top: 10px; left: 12px; z-index: 10;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(10,22,40,0.78); padding: 7px 10px; border-radius: 6px;
  border: 1px solid #1A3347;
}
.cmp_incubator_leg_item { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: var(--muted); }
.cmp_incubator_leg_dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cmp_incubator_leg_line { width: 20px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, #C0392B, #02C39A); }

/* ── HINT ────────────────────────────────────────── */
#cmp_incubator_hint {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  background: rgba(2,128,144,0.15); border: 1px solid rgba(2,128,144,0.4);
  color: #7AAFC0; font-size: 10.5px; padding: 5px 14px;
  border-radius: 20px; z-index: 10; pointer-events: none; white-space: nowrap;
  animation: cmp_incubator_hintFade 6s ease-in-out forwards;
}
@keyframes cmp_incubator_hintFade { 0%{opacity:0} 10%{opacity:1} 72%{opacity:1} 100%{opacity:0} }

/* ── NODE ANIMATIONS ─────────────────────────────── */
.cmp_incubator_node_group { cursor: default; }
.cmp_incubator_node_group.cmp_incubator_tappable { cursor: pointer; }
.cmp_incubator_node_group:hover .cmp_incubator_node_ring { opacity: 1; }
.cmp_incubator_node_circle { transition: filter 0.2s ease; }
.cmp_incubator_node_group:hover .cmp_incubator_node_circle { filter: brightness(1.25); }
.cmp_incubator_node_ring { opacity: 0; transition: opacity 0.3s; }
@keyframes cmp_incubator_warPulse  { 0%,100%{r:44;opacity:.15} 50%{r:62;opacity:0} }
@keyframes cmp_incubator_amrPulse  { 0%,100%{r:40;opacity:.20} 50%{r:58;opacity:0} }
.cmp_incubator_war_pulse { animation: cmp_incubator_warPulse 2.4s ease-in-out infinite; }
.cmp_incubator_amr_pulse { animation: cmp_incubator_amrPulse 2.0s ease-in-out infinite; }
.cmp_incubator_flow_path { transition: stroke-opacity .3s, stroke-width .3s; }

/* ── DETAIL PANEL — DESKTOP ──────────────────────── */
#cmp_incubator_detail_panel {
  width: 0; flex-shrink: 0;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
  background: #071120; border-left: 2px solid var(--teal);
  z-index: 5; display: flex; flex-direction: column;
}
#cmp_incubator_detail_panel.cmp_incubator_open { width: 340px; }
#cmp_incubator_detail_inner {
  width: 340px; height: 100%;
  overflow-y: auto;
  padding: 22px 20px;
  scrollbar-width: thin; scrollbar-color: var(--teal) transparent;
}
#cmp_incubator_detail_inner::-webkit-scrollbar { width: 4px; }
#cmp_incubator_detail_inner::-webkit-scrollbar-track { background: transparent; }
#cmp_incubator_detail_inner::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* ── PANEL CONTENT ────────────────────────────────── */
.cmp_incubator_dp_close {
  display: flex; justify-content: flex-end; margin-bottom: 14px;
}
.cmp_incubator_dp_close button {
  background: none; border: 1px solid #1E3A52; color: var(--muted);
  font-size: 13px; padding: 4px 10px; cursor: pointer; border-radius: 3px;
  transition: all .2s; font-family: 'Inter', sans-serif;
}
.cmp_incubator_dp_close button:hover { border-color: var(--teal); color: var(--white); }
.cmp_incubator_dp_tag {
  display: inline-block; font-size: 8.5px; font-weight: 700;
  letter-spacing: 1.5px; padding: 3px 9px; border-radius: 2px;
  margin-bottom: 9px; text-transform: uppercase;
}
.cmp_incubator_dp_title {
  font-size: 20px; font-weight: 700;
  line-height: 1.2; margin-bottom: 7px;
  color:white !important;
}
.cmp_incubator_dp_subtitle {
  font-size: 11.5px; color: #7AAFC0; font-style: italic;
  margin-bottom: 18px; line-height: 1.6;
}
.cmp_incubator_dp_stat_row { display: flex; gap: 10px; margin-bottom: 16px; }
.cmp_incubator_dp_stat {
  flex: 1; background: #0D1E32; border: 1px solid #1E3A52;
  border-radius: 4px; padding: 9px 10px; text-align: center;
}
.cmp_incubator_dp_stat .cmp_incubator_dp_stat_n { font-size: 22px; font-weight: 700; line-height: 1; }
.cmp_incubator_dp_stat .cmp_incubator_dp_stat_l { font-size: 8.5px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.cmp_incubator_dp_section { margin-bottom: 18px; }
.cmp_incubator_dp_section_title {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--teal);
  text-transform: uppercase; margin-bottom: 8px; padding-bottom: 5px;
  border-bottom: 1px solid #1E3A52;
}
.cmp_incubator_dp_section p { font-size: 12px; line-height: 1.7; color: #A8C8D8; }
.cmp_incubator_dp_pathogens { list-style: none; }
.cmp_incubator_dp_pathogens li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: #A8C8D8; padding: 6px 0;
  border-bottom: 1px solid #0D1E32; line-height: 1.4;
}
.cmp_incubator_dp_pathogens li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 4px;
}
.cmp_incubator_dp_pathogens li sup { font-size: 9px; color: var(--teal); margin-left: 2px; }

/* ── CONSOLIDATED REFERENCES BOX ─────────────────── */
.cmp_incubator_dp_refs_box { background: #0D1E32; border: 1px solid #1E3A52; border-radius: 6px; padding: 0 !important; overflow: hidden; }
.cmp_incubator_dp_refs_toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 12px 16px; cursor: pointer;
}
.cmp_incubator_dp_refs_chevron {
  width: 16px; height: 16px; color: var(--teal); flex-shrink: 0;
  transition: transform 0.3s ease;
}
.cmp_incubator_dp_refs_toggle[aria-expanded="true"] .cmp_incubator_dp_refs_chevron { transform: rotate(180deg); }
.cmp_incubator_dp_refs_body { display: none; padding: 0 16px 14px; }
.cmp_incubator_dp_refs_box.cmp_refs_open .cmp_incubator_dp_refs_body { display: block; }
.cmp_incubator_dp_ref_group { margin-bottom: 12px; }
.cmp_incubator_dp_ref_group:last-child { margin-bottom: 0; }
.cmp_incubator_dp_ref_group_title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.cmp_incubator_dp_ref_ol { list-style: decimal; padding-left: 28px; margin: 0; }
.cmp_incubator_dp_ref_ol li { font-size: 10.5px; line-height: 1.6; color: #8AACBC; padding: 2px 0; }
.cmp_incubator_dp_ref_ol li em { font-style: italic; }
.cmp_incubator_dp_ref_ol li a { color: var(--teal); text-decoration: none; }
.cmp_incubator_dp_ref_ol li a:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────── */
#cmp_incubator_footer {
  flex-shrink: 0; height: 36px; background: var(--navy2);
  border-top: 1px solid #1A3347;
  display: flex; align-items: center; overflow: hidden;
}
#cmp_incubator_footer_track {
  display: flex; align-items: center;
  animation: cmp_incubator_scrollTicker 40s linear infinite;
  white-space: nowrap; will-change: transform;
}
#cmp_incubator_footer:hover #cmp_incubator_footer_track { animation-play-state: paused; }
@keyframes cmp_incubator_scrollTicker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.cmp_incubator_ft_item { display: flex; align-items: center; gap: 7px; padding: 0 26px; border-right: 1px solid #1A3347; flex-shrink: 0; }
.cmp_incubator_ft_dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.cmp_incubator_ft_text { font-size: 10px; color: var(--muted); }
.cmp_incubator_ft_text strong { color: var(--white); font-weight: 600; }

/* ══════════════════════════════════════════════════
   MOBILE  ≤ 700px
══════════════════════════════════════════════════ */
@media (max-width: 700px) {

  /* Header */
  .cmp_incubator_header { height: 52px; padding: 0 14px; }
  .cmp_incubator_hdr_badge { display: none; }
  .cmp_incubator_header h1 { font-size: 13px; }
  .cmp_incubator_hdr_stats { display: none; }
  .cmp_incubator_hdr_sep  { display: none; }

  /* Legend: compact, top-right */
  #cmp_incubator_legend { left: auto; right: 8px; top: 8px; padding: 5px 8px; gap: 3px; }
  .cmp_incubator_leg_item { font-size: 8px; gap: 5px; }
  .cmp_incubator_leg_dot { width: 7px; height: 7px; }
  .cmp_incubator_leg_line { width: 14px; }

  /* Hint */
  #cmp_incubator_hint { font-size: 10px; padding: 4px 12px; bottom: 42px; }

  /* ── BOTTOM SHEET ── */
  #cmp_incubator_detail_panel {
    position: fixed !important;
    bottom: 0; left: 0; right: 0;
    width: 100% !important;
    max-height: 88vh;
    transform: translateY(105%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1) !important;
    overflow: hidden !important;
    background: #071120;
    border-top: 2px solid var(--teal) !important;
    border-left: none !important;
    border-radius: 18px 18px 0 0;
    z-index: 200;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.7);
  }
  #cmp_incubator_detail_panel.cmp_incubator_open {
    transform: translateY(0) !important;
    width: 100% !important;
  }
  #cmp_incubator_detail_inner {
    width: 100% !important;
    height: auto !important;
    max-height: 88vh;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 18px 32px;
  }

  /* Drag handle */
  #cmp_incubator_drag_handle {
    display: flex; justify-content: center; padding: 12px 0 8px;
    position: sticky; top: 0; background: #071120; z-index: 1;
    border-radius: 18px 18px 0 0;
    flex-shrink: 0;
  }
  #cmp_incubator_drag_handle::before {
    content: '';
    display: block; width: 40px; height: 4px;
    background: #2A4A62; border-radius: 2px;
  }

  /* Panel content bigger on mobile */
  .cmp_incubator_dp_close { margin-bottom: 10px; }
  .cmp_incubator_dp_close button { font-size: 14px; padding: 6px 14px; }
  .cmp_incubator_dp_tag { font-size: 9px; padding: 4px 10px; margin-bottom: 8px; }
  .cmp_incubator_dp_title { font-size: 22px; margin-bottom: 8px; }
  .cmp_incubator_dp_subtitle { font-size: 13px; margin-bottom: 16px; }
  .cmp_incubator_dp_stat .cmp_incubator_dp_stat_n { font-size: 26px; }
  .cmp_incubator_dp_stat .cmp_incubator_dp_stat_l { font-size: 9px; }
  .cmp_incubator_dp_stat { padding: 10px 8px; }
  .cmp_incubator_dp_section_title { font-size: 10px; margin-bottom: 8px; }
  .cmp_incubator_dp_section p { font-size: 13.5px; line-height: 1.7; }
  .cmp_incubator_dp_pathogens li { font-size: 13px; padding: 7px 0; }

  /* Backdrop overlay */
  #cmp_incubator_backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
  }
  #cmp_incubator_backdrop.cmp_incubator_show { display: block; }

  /* Footer: scroll manually, no animation */
  #cmp_incubator_footer { overflow-x: auto; }
  #cmp_incubator_footer_track { animation: none; }
  .cmp_incubator_ft_item { padding: 0 16px; }
}

/* ══════════════════════════════════════════════════
   SMALL PHONES  ≤ 400px
══════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .cmp_incubator_header h1 { font-size: 11px; }
  #cmp_incubator_legend { display: none; }
  .cmp_incubator_dp_stat_row { gap: 7px; }
  .cmp_incubator_dp_title { font-size: 19px; }
}

/* ── REFERENCES SHORTCODE ────────────────────────── */
.cmp_incubator_ref_list_wrap { font-family: 'Inter', sans-serif; }
.cmp_ref_consolidated_box { border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; background: #f8fafc; }
.cmp_ref_toggle_btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: #f8fafc; border: none; padding: 14px 20px; cursor: pointer;
    font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #334155;
}
.cmp_ref_toggle_btn:hover { background: #f1f5f9; }
.cmp_ref_toggle_icon {
    width: 18px; height: 18px; flex-shrink: 0; color: #64748b;
    transition: transform 0.3s ease;
}
.cmp_ref_toggle_btn[aria-expanded="true"] .cmp_ref_toggle_icon { transform: rotate(180deg); }
.cmp_ref_toggle_body { display: none; padding: 20px 20px 20px; border-top: 1px solid #e2e8f0; }
.cmp_ref_consolidated_box.cmp_refs_open .cmp_ref_toggle_body { display: block; }
.cmp_ref_group { margin-bottom: 16px; }
.cmp_ref_group:last-child { margin-bottom: 0; }
.cmp_ref_group_title {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
    border-left: 4px solid; padding-left: 10px; margin-bottom: 6px; margin-top: 16px;
}
.cmp_ref_group:first-child .cmp_ref_group_title { margin-top: 0; }
.cmp_incubator_ref_ol { list-style: decimal; padding: 10px 0 0 36px; margin: 0; }
.cmp_incubator_ref_ol li { font-size: 13px; line-height: 1.7; padding: 3px 0; color: inherit; }
.cmp_incubator_ref_ol li em { font-style: italic; }
