/* ─── Intel Hub — shared stylesheet ──────────────────────────────────────── */
/* Mirrors hallucinationfinder.com design system */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e0e0d;
  --bg-alt: #161614;
  --surface: #1c1b19;
  --surface-2: #232220;
  --rule: #2a2826;
  --rule-light: #333130;
  --ink: #e8e5e0;
  --dim: #a09e98;
  --muted: #6b6965;
  --faint: #444240;
  --red: #e84c3c;
  --red-dim: #c93a2c;
  --red-bg: rgba(232,76,60,.06);
  --red-border: rgba(232,76,60,.2);
  --amber: #d4a027;
  --amber-bg: rgba(212,160,39,.06);
  --amber-border: rgba(212,160,39,.2);
  --green: #2ea55a;
  --green-bg: rgba(46,165,90,.06);
  --green-border: rgba(46,165,90,.2);

  --ff: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', monospace;
}

html { background: var(--bg); color: var(--ink); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.intel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  height: 56px;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.intel-nav-brand {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
}
.intel-nav-brand span { color: var(--red); }
.intel-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.intel-nav-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.intel-nav-link:hover { color: var(--ink); }
.intel-nav-cta {
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: background .2s;
}
.intel-nav-cta:hover { background: var(--red-dim); }

/* ─── Page layout ─────────────────────────────────────────────────────────── */
.intel-page {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 72px) clamp(20px, 5vw, 40px) 80px;
}

/* ─── Feed header ─────────────────────────────────────────────────────────── */
.intel-feed-header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
}
.intel-feed-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.intel-feed-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.intel-feed-desc {
  font-size: 15px;
  color: var(--dim);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Vertical filter pills ──────────────────────────────────────────────── */
.intel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.intel-filter-pill {
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.intel-filter-pill:hover,
.intel-filter-pill.active {
  color: var(--ink);
  border-color: var(--rule-light);
}

/* ─── Entry card (feed view) ──────────────────────────────────────────────── */
.intel-entry-card {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: none;
}
.intel-entry-card:first-of-type { border-top: 1px solid var(--rule); }
.intel-entry-card:hover .intel-card-title { color: var(--red); }

.intel-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.intel-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.intel-tag--legal    { color: #7ba7d4; background: rgba(123,167,212,.1); border: 1px solid rgba(123,167,212,.2); }
.intel-tag--research { color: #9b8cd4; background: rgba(155,140,212,.1); border: 1px solid rgba(155,140,212,.2); }
.intel-tag--regulatory { color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-border); }
.intel-tag--pharma   { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); }
.intel-tag--enterprise { color: var(--dim); background: var(--surface); border: 1px solid var(--rule); }

.intel-card-date {
  font-size: 12px;
  color: var(--muted);
}
.intel-card-type {
  font-size: 12px;
  color: var(--faint);
  font-family: var(--mono);
}

.intel-card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color .15s;
}
.intel-card-summary {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.65;
  margin-bottom: 10px;
}
.intel-card-datapoint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
}
.intel-card-arrow {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  transition: color .15s;
}
.intel-entry-card:hover .intel-card-arrow { color: var(--red); }

/* ─── Individual entry page ───────────────────────────────────────────────── */
.intel-entry-header {
  margin-bottom: 36px;
}
.intel-entry-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .15s;
}
.intel-entry-back:hover { color: var(--ink); }
.intel-entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.intel-entry-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
}
.intel-entry-datapoint {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  padding: 10px 16px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 6px;
  margin-bottom: 28px;
  display: inline-block;
}

/* ─── Entry body ──────────────────────────────────────────────────────────── */
.intel-body {
  margin-bottom: 36px;
}
.intel-body-section {
  margin-bottom: 28px;
}
.intel-body-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.intel-body-text {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.75;
}
.intel-body-text + .intel-body-text {
  margin-top: 14px;
}

/* ─── Cairnic take ────────────────────────────────────────────────────────── */
.intel-take {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.intel-take-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.intel-take-text {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.75;
}
.intel-take-text + .intel-take-text {
  margin-top: 12px;
}

/* ─── Source ──────────────────────────────────────────────────────────────── */
.intel-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  margin-bottom: 40px;
}
.intel-source a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color .15s, border-color .15s;
}
.intel-source a:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* ─── CTA block ───────────────────────────────────────────────────────────── */
.intel-cta-block {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.intel-cta-text {
  flex: 1;
  min-width: 200px;
}
.intel-cta-headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.intel-cta-sub {
  font-size: 13px;
  color: var(--muted);
}
.intel-cta-btn {
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.intel-cta-btn:hover { background: var(--red-dim); }

/* ─── Related entries ─────────────────────────────────────────────────────── */
.intel-related {
  margin-top: 52px;
}
.intel-related-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.intel-related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.intel-footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.intel-footer-brand {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.intel-footer-brand span { color: var(--red); }
.intel-footer-links {
  display: flex;
  gap: 20px;
}
.intel-footer-link {
  font-size: 12px;
  color: var(--faint);
  text-decoration: none;
  transition: color .15s;
}
.intel-footer-link:hover { color: var(--muted); }
