/* Truth Observatory — Field Notebook (monochrome chrome, color reserved for live data stamps) */

.nb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  color: var(--text-primary, #f0f0ec);
}

.nb-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nb-head__eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted, #8e96a3);
  margin: 0 0 6px;
}

.nb-head__title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.nb-head__sub {
  margin: 0;
  color: var(--text-secondary, #b2b8c2);
  font-size: 0.92rem;
  max-width: 640px;
  line-height: 1.5;
}

.nb-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Status / Demo / Import banners */
.nb-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary, #c4c9d1);
}
.nb-banner--demo { border-color: rgba(227, 185, 90, 0.38); }
.nb-banner--import { border-color: rgba(61, 220, 132, 0.45); background: rgba(61, 220, 132, 0.05); }
.nb-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Buttons & inputs */
.nb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0ec;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.nb-btn:hover { border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.08); }
.nb-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nb-btn--gold { background: var(--gold, #e3b95a); color: #111; border-color: var(--gold, #e3b95a); font-weight: 700; }
.nb-btn--gold:hover { background: #ecc66d; border-color: #ecc66d; }
.nb-btn--live { border-color: rgba(0, 210, 255, 0.45); color: #8fe8ff; }
.nb-btn--live:hover { background: rgba(0, 210, 255, 0.1); border-color: #00d2ff; }
.nb-btn--danger { border-color: rgba(239, 68, 68, 0.35); color: #f87171; }
.nb-btn--danger:hover { background: rgba(239, 68, 68, 0.1); }
.nb-btn--sm { padding: 5px 9px; font-size: 0.72rem; }
.nb-btn.is-on { border-color: var(--gold, #e3b95a); color: var(--gold, #e3b95a); }

/* Horizontal snap carousels (Cases & Evidence) with centered prev/next arrows and dots */
.nb-carousel-section { margin-bottom: 20px; }
.nb-carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.nb-section-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #8e96a3);
  margin: 0;
}

.nb-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.nb-track::-webkit-scrollbar { display: none; }

.nb-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.nb-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0ec;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nb-arrow:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.1); }
.nb-dots { display: flex; gap: 6px; align-items: center; }
.nb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.nb-dot.is-active { background: var(--gold, #e3b95a); transform: scale(1.25); }

/* Case cards inside carousel */
.nb-case-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  text-align: left;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: #f0f0ec;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.nb-case-card:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }
.nb-case-card.is-active { border-color: var(--gold, #e3b95a); background: rgba(227, 185, 90, 0.08); }
.nb-case-card__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: var(--font-mono, monospace); font-size: 0.68rem; color: var(--text-muted, #8e96a3); }
.nb-case-card__title { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-case-card__sub { font-size: 0.76rem; color: var(--text-secondary, #9aa4b2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Main workspace split */
.nb-work {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 880px) {
  .nb-work { grid-template-columns: 1fr; }
}

.nb-pane {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

/* Left sidebar: search, tags, note list */
.nb-sidebar__top { display: flex; gap: 6px; margin-bottom: 10px; }
.nb-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #090b10;
  color: #f0f0ec;
  font-size: 0.86rem;
  font-family: inherit;
}
.nb-input:focus { outline: none; border-color: var(--gold, #e3b95a); }
.nb-input--mono { font-family: var(--font-mono, monospace); font-size: 0.78rem; }

.nb-view-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.nb-seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 4px; overflow: hidden; }
.nb-seg button {
  border: 0;
  background: transparent;
  color: var(--text-secondary, #9aa4b2);
  padding: 5px 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  cursor: pointer;
}
.nb-seg button.is-active { background: rgba(255, 255, 255, 0.12); color: #fff; }

.nb-tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.nb-tag {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text-secondary, #a8b0bc);
  border-radius: 999px;
  padding: 2px 9px;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  cursor: pointer;
}
.nb-tag.is-active { border-color: var(--gold, #e3b95a); color: var(--gold, #e3b95a); }

.nb-list { display: flex; flex-direction: column; gap: 6px; max-height: 620px; overflow-y: auto; }
.nb-note-row {
  text-align: left;
  padding: 10px 11px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
  color: #f0f0ec;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nb-note-row:hover { border-color: rgba(255, 255, 255, 0.22); }
.nb-note-row.is-active { border-color: var(--gold, #e3b95a); background: rgba(227, 185, 90, 0.07); }
.nb-note-row__title { font-weight: 600; font-size: 0.88rem; }
.nb-note-row__meta { font-family: var(--font-mono, monospace); font-size: 0.68rem; color: var(--text-muted, #848d9b); display: flex; flex-wrap: wrap; gap: 8px; }
.nb-note-row__snippet { font-size: 0.78rem; color: var(--text-secondary, #9aa4b2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.nb-timeline-item {
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  padding: 4px 0 12px 12px;
  margin-left: 6px;
}
.nb-timeline-item__time { font-family: var(--font-mono, monospace); font-size: 0.68rem; color: var(--gold, #e3b95a); margin-bottom: 3px; }

/* Right editor */
.nb-editor__meta {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 640px) { .nb-editor__meta { grid-template-columns: 1fr; } }

.nb-editor__title {
  font-size: 1.12rem;
  font-weight: 700;
  padding: 10px 12px;
}
.nb-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  margin-bottom: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nb-snap-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nb-zip-input { width: 92px; padding: 6px 8px; font-family: var(--font-mono, monospace); font-size: 0.76rem; }

.nb-textarea {
  width: 100%;
  min-height: 240px;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #080a0f;
  color: #f0f0ec;
  font-size: 0.92rem;
  line-height: 1.65;
  font-family: inherit;
  resize: vertical;
}
.nb-textarea:focus { outline: none; border-color: var(--gold, #e3b95a); }

.nb-editor__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--text-muted, #848d9b);
}
.nb-hash { color: #7dffb8; }

/* Collapsible Skeptic Check */
.nb-skeptic {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  border-left: 2px solid var(--gold, #e3b95a);
  background: rgba(227, 185, 90, 0.04);
}
.nb-skeptic h3 { margin: 0 0 6px; font-size: 0.8rem; font-family: var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold, #e3b95a); }
.nb-skeptic p { margin: 0 0 10px; font-size: 0.8rem; color: var(--text-secondary, #9aa4b2); }
.nb-skeptic label { display: block; font-size: 0.75rem; color: #d4dae3; margin: 8px 0 4px; font-family: var(--font-mono, monospace); }

/* Evidence cards inside carousel */
.nb-ev-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.nb-ev-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 6px;
  background: #0b1018;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nb-ev-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.nb-ev-card__kind { font-family: var(--font-mono, monospace); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: #00d2ff; }
.nb-ev-card__title { font-weight: 700; font-size: 0.84rem; color: #fff; }
.nb-ev-card__time { font-family: var(--font-mono, monospace); font-size: 0.67rem; color: var(--text-muted, #848d9b); }
.nb-ev-card__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 0.76rem; color: #cfd6e0; }
.nb-ev-card__list li { line-height: 1.4; }
.nb-ev-card__src { color: #7e8999; font-size: 0.68rem; }
.nb-ev-card__foot { margin-top: auto; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); display: flex; justify-content: space-between; font-family: var(--font-mono, monospace); font-size: 0.65rem; color: #7dffb8; }
.nb-ev-card__foot a { color: #8fe8ff; text-decoration: none; }
.nb-ev-card__del { background: transparent; border: 0; color: #848d9b; cursor: pointer; font-size: 0.9rem; padding: 0 4px; }
.nb-ev-card__del:hover { color: #f87171; }

/* Modals (Export & New Case) */
.nb-modal[hidden] { display: none; }
.nb-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.nb-modal__card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #10131a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 22px;
}
.nb-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nb-modal__head h2 { margin: 0; font-size: 1.05rem; }
.nb-export-actions { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.nb-axiom-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}
.nb-axiom-box__eyebrow { font-family: var(--font-mono, monospace); font-size: 0.67rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold, #e3b95a); margin: 0 0 4px; }
.nb-axiom-box p { margin: 0; font-size: 0.8rem; color: var(--text-secondary, #b2b8c2); line-height: 1.5; }
.nb-status { font-family: var(--font-mono, monospace); font-size: 0.76rem; margin-top: 8px; min-height: 1.2em; color: #7dffb8; }
.nb-status.is-err { color: #f87171; }

/* Print / Save as PDF report layout */
@media print {
  header, footer, nav, .ob-top, .ob-tabs, .ob-foot, .nb-banner, .nb-head__actions,
  .nb-carousel-section, .nb-pane--list, .nb-editor__toolbar, .nb-editor__foot button,
  .nb-carousel-nav, .nb-ev-card__del, .nb-modal { display: none !important; }
  body, .nb, .nb-pane { background: #fff !important; color: #111 !important; border: 0 !important; padding: 0 !important; }
  .nb-work { display: block !important; }
  .nb-input, .nb-textarea { border: 0 !important; background: #fff !important; color: #111 !important; padding: 0 !important; }
  .nb-track { display: block !important; overflow: visible !important; }
  .nb-ev-card { background: #f8f8f8 !important; color: #111 !important; border: 1px solid #ccc !important; margin-bottom: 10px; break-inside: avoid; }
  .nb-ev-card__title, .nb-ev-card__list, .nb-ev-card__kind { color: #111 !important; }
}
