/* ── NucColpedia Drawer styles ────────────────────────────────────────────
   Ported from the standalone NucColpedia.html library tool (924 external
   research links). Reuses the shared .assess-drawer / .assess-panel /
   .assess-topbar shell (see evidence-vault.css / plant-explorer.css for the
   same pattern) so it opens and closes consistently with the other tools. */

/* .np-panel now inherits the shared .assess-panel full-span width (sidebar
   edge to screen edge, 2026-08-04) — no cap needed here. */

/* ── Tab strip ────────────────────────────────────────────────────────── */
.np-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line, #e5e7eb);
  background: #fff;
  flex-shrink: 0;
}
.np-tab {
  border: none;
  background: none;
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted, #65758a);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: .15s;
}
.np-tab:hover { color: var(--ink, #142132); }
.np-tab--active {
  color: var(--accent, #26a9d8);
  border-bottom-color: var(--accent, #26a9d8);
}

#npMain, #npReactorsMain {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#npMain[hidden], #npReactorsMain[hidden] { display: none; }

.np-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  gap: 0;
}

/* ── Filter rail ─────────────────────────────────────────────────────── */
.np-filters {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--line, #e5e7eb);
  background: var(--wash, #f7fbff);
  overflow-y: auto;
  padding: 16px;
}
.np-filter-group { margin-bottom: 16px; }
.np-filter-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted, #65758a);
  margin-bottom: 6px;
}
.np-search {
  width: 100%;
  border: 1px solid var(--line, #d8e2ec);
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: .84rem;
  outline: none;
}
.np-search:focus { border-color: var(--accent, #26a9d8); }
.np-select {
  width: 100%;
  border: 1px solid var(--line, #d8e2ec);
  background: #fff;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: .8rem;
  outline: none;
}
.np-select:focus { border-color: var(--accent, #26a9d8); }
.np-topic-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line, #d8e2ec);
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
}
.np-topic-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: #40566c;
  padding: 3px 0;
  cursor: pointer;
}
.np-topic-list input { margin: 0; accent-color: var(--accent, #26a9d8); }
.np-reset-btn {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--line, #d8e2ec);
  background: #fff;
  color: #40566c;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.np-reset-btn:hover { border-color: var(--accent, #26a9d8); color: var(--accent, #26a9d8); }

/* ── Results column ──────────────────────────────────────────────────── */
.np-results-wrap {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 16px 20px;
}
.np-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: .8rem;
  color: var(--muted, #65758a);
}
.np-toolbar strong { color: var(--ink, #142132); }

.np-card {
  background: #fff;
  border: 1px solid var(--line, #d8e2ec);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.np-card h4 {
  margin: 0 0 6px;
  font-size: .92rem;
  line-height: 1.35;
}
.np-card h4 a { color: #0c5490; text-decoration: none; }
.np-card h4 a:hover { text-decoration: underline; }
.np-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  font-size: .68rem;
  color: var(--muted, #65758a);
  margin-bottom: 6px;
}
.np-pill {
  display: inline-block;
  background: #eef2f8;
  color: #2b3d54;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .66rem;
}
.np-pill.cat { background: var(--brand, #10243a); color: #fff; }
.np-pill.local { background: #e3f3e6; color: #1e6b34; }
.np-pill.web { background: #e6eefc; color: #1a4d8f; }
.np-desc {
  font-size: .8rem;
  line-height: 1.5;
  color: #33404d;
  margin: 6px 0;
}
.np-keywords { font-size: .68rem; color: var(--muted, #65758a); margin-top: 4px; }
.np-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted, #65758a);
  font-size: .86rem;
}

@media (max-width: 760px) {
  .np-body { flex-direction: column; }
  .np-filters { width: 100%; border-right: none; border-bottom: 1px solid var(--line, #e5e7eb); }
}

/* ── Reactor Documents tab ───────────────────────────────────────────── */
.np-search:disabled, .np-select:disabled, .np-search-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.np-search-btn {
  width: 100%;
  margin-top: 8px;
  background: var(--accent, #26a9d8);
  color: #fff;
  border-color: var(--accent, #26a9d8);
}
.np-search-btn:hover { opacity: .9; color: #fff; }

.rk-card .np-meta-row span:not(.np-pill) {
  color: var(--muted, #65758a);
}
.rk-actions {
  display: flex;
  gap: 16px;
  margin-top: 2px;
}
.rk-view-btn {
  border: none;
  background: none;
  color: #0c5490;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.rk-view-btn:hover { text-decoration: underline; }
