/* ============================================================================
   HUMINT Panel — Actor / Act IA separation
   ----------------------------------------------------------------------------
   UI-review item 11: HUMINT now separates the SOURCE (Actor — dossier) from the
   INTELLIGENCE (Act — the brief/reporting). This stylesheet covers:
     • #humint-intel-modal      — the Intelligence Feed (primary view)
     • .humint-contactlog-row   — contact-log references inside the Source Dossier
     • .nav-sub-section-label   — the "Sources (Dossiers)" nav divider

   Panel-scoped only. No style.css globals are touched. Uses existing design
   tokens (--border, --text-muted, --accent, --font-mono, badge classes, …).
   GPU-friendly: animations use transform/opacity only.
   ============================================================================ */

/* ── Nav: section label dividing primary actions from the source roster ───── */
.nav-sub-section-label {
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px 4px 30px;
  opacity: 0.8;
}

/* ── Intelligence Feed modal ──────────────────────────────────────────────── */
.humint-intel-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 72vh;
  overflow: hidden;
}

.humint-intel-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.humint-intel-search {
  flex: 1;
  min-width: 0;
}
.humint-intel-relfilter {
  width: 170px;
  flex-shrink: 0;
}

.humint-intel-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  min-height: 120px;
}

.humint-intel-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 28px 16px;
  line-height: 1.5;
}
.humint-intel-error {
  color: var(--danger, #e5484d);
}

/* ── Intelligence brief card (the Act) ────────────────────────────────────── */
.humint-intel-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #4aa8ff);
  border-radius: 6px;
  padding: 11px 13px;
  /* GPU-accelerated entry — opacity/transform only */
  animation: humintIntelIn 0.18s ease-out both;
}
@keyframes humintIntelIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.humint-intel-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.humint-intel-type {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: capitalize;
  color: var(--text-secondary);
}
.humint-intel-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.humint-intel-cred {
  margin-left: auto;
  font-size: 0.62rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.humint-intel-brief {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary, #e8edf2);
  white-space: normal;
  word-break: break-word;
}

.humint-intel-loc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ── Source reference (codename only — the bridge to the Actor) ───────────── */
.humint-intel-srcref {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.06));
}
.humint-intel-srclabel {
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.humint-intel-codename {
  background: rgba(74, 168, 255, 0.12);
  border: 1px solid rgba(74, 168, 255, 0.35);
  color: var(--accent, #4aa8ff);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  border-radius: 4px;
  padding: 2px 9px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}
.humint-intel-codename:hover {
  background: rgba(74, 168, 255, 0.22);
  transform: translateY(-1px);
}
.humint-intel-codename:focus-visible {
  outline: 2px solid var(--accent, #4aa8ff);
  outline-offset: 1px;
}
.humint-intel-srcrel {
  font-size: 0.62rem !important;
  font-family: var(--font-mono);
}
.humint-intel-link {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-left: 2px;
}

/* ── Source Dossier — Contact Log rows (references, not full briefs) ───────── */
.humint-dossier-modal .humint-field-muted {
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.8;
}

.humint-contactlog-row {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
  margin-bottom: 7px;
  font-size: 0.75rem;
}
.humint-contactlog-row .enc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.humint-contactlog-row .enc-location {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.humint-contactlog-row .enc-summary-preview {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-secondary);
  opacity: 0.92;
}
.humint-contactlog-row .enc-links {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}
.humint-contactlog-row .enc-link {
  font-size: 0.66rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ── Responsive: tighten toolbar on narrow viewports ──────────────────────── */
@media (max-width: 560px) {
  .humint-intel-toolbar {
    flex-wrap: wrap;
  }
  .humint-intel-relfilter {
    width: 100%;
  }
  .humint-intel-srcref {
    gap: 5px;
  }
}
