@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Source+Serif+4:wght@400;600;700&display=swap');

:root {
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --rose-500: #f43f5e;
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --indigo-100: #e0e7ff;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--slate-100);
  color: var(--slate-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
}

/* -- TOP BAR -- */
.top-bar {
  background: var(--slate-900);
  color: white;
  padding: 8px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.top-bar .confidential { color: var(--teal-400); font-weight: 700; }
.top-bar .date { color: var(--slate-400); font-weight: 500; }

/* -- HERO -- */
.hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1a2744 50%, #0f2027 100%);
  color: white;
  padding: 24px 28px 20px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(20,184,166,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 100px 1fr 90px;
  gap: 22px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.avatar {
  width: 100px; height: 100px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--slate-700), var(--slate-600));
  border: 3px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 700;
  color: var(--teal-400);
  letter-spacing: -1px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-info .kol-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px; font-weight: 700; line-height: 1.15; margin-bottom: 3px;
}
.hero-info .kol-credentials {
  font-size: 11px; color: var(--teal-400); font-weight: 600;
  letter-spacing: 0.03em; margin-bottom: 10px;
}
.hero-info .kol-title {
  font-size: 12px; color: var(--slate-300); line-height: 1.45; max-width: 540px;
}
.hero-info .kol-title strong { color: white; font-weight: 600; }

/* -- HERO BADGES -- */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tier-badge, .profile-badge, .conflict-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tier-badge.tier-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #451a03; }
.tier-badge.tier-2 { background: linear-gradient(135deg, var(--teal-400), var(--teal-500)); color: #042f2e; }
.tier-badge.tier-3 { background: linear-gradient(135deg, var(--indigo-500), #7c3aed); color: white; }

.profile-badge.researcher { background: rgba(99, 102, 241, 0.2); color: #c7d2fe; }
.profile-badge.practitioner { background: rgba(20, 184, 166, 0.2); color: var(--teal-400); }
.profile-badge.hybrid { background: rgba(251, 191, 36, 0.2); color: var(--amber-400); }
.profile-badge.influencer { background: rgba(244, 63, 94, 0.2); color: #fda4af; }

.conflict-badge.clean { background: rgba(20, 184, 166, 0.2); color: var(--teal-400); }
.conflict-badge.low { background: rgba(251, 191, 36, 0.2); color: var(--amber-400); }
.conflict-badge.moderate { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.conflict-badge.high { background: rgba(244, 63, 94, 0.2); color: #fda4af; }

/* -- KOL SCORE CIRCLE -- */
.kol-score {
  width: 86px; height: 86px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  justify-self: end;
}
.kol-score-inner {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--slate-900);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.kol-score-num {
  font-size: 26px; font-weight: 800;
  color: var(--teal-400); line-height: 1;
}
.kol-score-label {
  font-size: 7px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--slate-400); margin-top: 2px;
}

/* -- FACT STRIP -- */
.fact-strip {
  display: flex;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 10px 28px;
  gap: 7px; flex-wrap: wrap; align-items: center;
}
.fact-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  font-size: 11px; color: var(--slate-700); font-weight: 500; line-height: 1.3;
}
.fact-chip strong { color: var(--slate-900); font-weight: 700; }
.fact-chip .fact-icon { font-size: 13px; flex-shrink: 0; }
.fact-chip.impact {
  background: var(--teal-50);
  border-color: #99f6e4;
  color: #0f766e;
}
.fact-chip.impact strong { color: #0f766e; }
.fact-divider { width: 1px; height: 20px; background: var(--slate-300); margin: 0 4px; }

/* -- BODY CONTENT -- */
.body-content { display: grid; grid-template-columns: 1fr 340px; gap: 0; }
.main-col { padding: 14px 20px 14px 28px; }
.side-col { padding: 14px 28px 14px 0; border-left: 1px solid var(--slate-200); padding-left: 18px; }

/* -- SECTION STYLES -- */
.section { margin-bottom: 12px; }
.section:last-child { margin-bottom: 0; }
.section-header { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.section-icon {
  width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.section-icon.teal { background: var(--teal-100); color: var(--teal-600); }
.section-icon.indigo { background: var(--indigo-100); color: var(--indigo-600); }
.section-icon.amber { background: #fef3c7; color: #d97706; }
.section-icon.rose { background: #ffe4e6; color: #e11d48; }
.section-icon.slate { background: var(--slate-200); color: var(--slate-700); }
.section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--slate-600);
}

/* -- ENGAGEMENT BOX -- */
.engagement-box {
  background: linear-gradient(135deg, var(--teal-50), #ecfdf5);
  border: 1px solid #99f6e4;
  border-radius: 8px; padding: 12px 14px; margin-bottom: 12px;
}
.engagement-box .box-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal-600); margin-bottom: 6px;
}
.engagement-box p { font-size: 11px; color: var(--slate-700); line-height: 1.5; }

/* -- BULLET LISTS -- */
.detail-list { list-style: none; padding: 0; }
.detail-list li {
  position: relative; padding-left: 12px; margin-bottom: 3px;
  font-size: 11px; color: var(--slate-700); line-height: 1.4;
}
.detail-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--teal-500);
}
.detail-list li strong { color: var(--slate-900); font-weight: 600; }

/* -- TAGS -- */
.tag-group { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
}
.tag.teal { background: var(--teal-100); color: #0f766e; }
.tag.indigo { background: var(--indigo-100); color: #4338ca; }
.tag.amber { background: #fef3c7; color: #92400e; }
.tag.rose { background: #ffe4e6; color: #9f1239; }
.tag.slate { background: var(--slate-200); color: var(--slate-700); }

/* -- DATA TABLE -- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table tr { border-bottom: 1px solid var(--slate-100); }
.data-table tr:last-child { border-bottom: none; }
.data-table td { padding: 3px 0; font-size: 11px; }
.dt-label { color: var(--slate-500); font-weight: 500; }
.dt-value { text-align: right; font-weight: 700; color: var(--slate-900); font-variant-numeric: tabular-nums; }

/* -- GEO CARD -- */
.geo-card {
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: 8px; padding: 10px 14px;
}
.geo-card .geo-city { font-size: 15px; font-weight: 700; color: var(--slate-900); margin-bottom: 2px; }
.geo-card .geo-state { font-size: 10px; color: var(--slate-500); font-weight: 500; }
.geo-card .geo-note {
  font-size: 10px; color: var(--teal-600); font-weight: 600;
  margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--slate-200);
}

/* -- SOCIETY BADGES -- */
.society-list { list-style: none; padding: 0; }
.society-item { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--slate-100); }
.society-item:last-child { border-bottom: none; }
.society-badge {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--slate-900); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; letter-spacing: -0.02em; flex-shrink: 0;
}
.society-info .society-role { font-size: 11px; font-weight: 600; color: var(--slate-800); line-height: 1.3; }
.society-info .society-org { font-size: 9.5px; color: var(--slate-500); }

/* -- KEY PUBLICATIONS -- */
.pub-item { padding: 6px 0; border-bottom: 1px solid var(--slate-100); }
.pub-item:last-child { border-bottom: none; }
.pub-title { font-size: 11px; font-weight: 600; color: var(--slate-800); line-height: 1.4; margin-bottom: 2px; }
.pub-meta { font-size: 9.5px; color: var(--slate-500); }
.pub-meta .journal { font-style: italic; }

/* -- NELLA RELEVANCE BOX -- */
.nella-box {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border: 1px solid #fde68a;
  border-radius: 8px; padding: 12px 14px; margin-bottom: 12px;
}
.nella-box .box-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: #92400e; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.nella-box p { font-size: 11px; color: var(--slate-700); line-height: 1.45; }

/* -- QUOTE BLOCK -- */
.quote-block {
  background: var(--slate-50); border-left: 3px solid var(--teal-500);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin-bottom: 20px;
}
.quote-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px; color: var(--slate-700); font-style: italic; line-height: 1.6; margin-bottom: 6px;
}
.quote-attr { font-size: 11px; color: var(--slate-500); font-weight: 600; }

/* -- SCORE DIMENSIONS -- */
.score-dim { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.score-dim-label { font-size: 9px; color: var(--slate-500); width: 82px; flex-shrink: 0; text-align: right; }
.score-dim-bar { flex: 1; height: 6px; background: var(--slate-200); border-radius: 3px; overflow: hidden; }
.score-dim-fill { height: 100%; border-radius: 3px; }
.score-dim-fill.high { background: var(--teal-500); }
.score-dim-fill.medium { background: var(--amber-500); }
.score-dim-fill.low { background: var(--rose-500); }
.score-dim-val { font-size: 10px; font-weight: 700; color: var(--slate-800); width: 16px; text-align: center; }
.score-note { font-size: 8px; color: var(--slate-400); margin-top: 4px; font-style: italic; }

/* -- TACTICAL TIMELINE -- */
.timeline-item {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 0 10px; padding: 5px 0; border-bottom: 1px solid var(--slate-100);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-phase { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal-600); }
.timeline-date { font-size: 9px; color: var(--slate-400); }
.timeline-detail { font-size: 10.5px; color: var(--slate-700); line-height: 1.35; }
.timeline-detail strong { color: var(--slate-900); font-weight: 600; }

/* -- SPHERE OF INFLUENCE -- */
.influence-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.influence-stat {
  text-align: center; background: var(--slate-50);
  border: 1px solid var(--slate-200); border-radius: 6px; padding: 6px 4px;
}
.influence-num { font-size: 16px; font-weight: 800; color: var(--slate-900); display: block; line-height: 1.1; }
.influence-label { font-size: 8px; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-top: 2px; }
.connection-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.connection-chip {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-size: 9px; font-weight: 500;
  background: var(--indigo-100); color: #4338ca;
}

/* -- SOURCES -- */
.sources-section { border-top: 1px solid var(--slate-200); margin-top: 4px; padding-top: 8px; }
.source-link { font-size: 9.5px; color: var(--slate-500); word-break: break-all; line-height: 1.5; }
.source-link a { color: var(--indigo-500); text-decoration: none; }
.source-link a:hover { text-decoration: underline; }

/* -- MEDIA CARD -- */
.media-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--slate-100); }
.media-item:last-child { border-bottom: none; }
.media-icon {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--slate-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.media-info { font-size: 10.5px; color: var(--slate-700); line-height: 1.3; }
.media-info strong { color: var(--slate-900); }

/* -- FOOTER -- */
.footer {
  background: var(--slate-900); color: var(--slate-400);
  padding: 8px 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 0.05em;
}
.footer .brand { font-weight: 700; color: var(--teal-400); letter-spacing: 0.08em; text-transform: uppercase; }

/* -- PRINT -- */
@media print {
  html, body {
    background: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    margin: 0; padding: 0;
    width: 8.5in; height: 11in; overflow: hidden;
  }
  .page {
    box-shadow: none; max-width: 8.5in; width: 8.5in;
    height: 11in; min-height: 0; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .body-content { flex: 1; overflow: hidden; }
  .section, .engagement-box, .nella-box, .hero, .fact-strip,
  .geo-card, .society-item, .pub-item, .media-item, .detail-list li,
  .timeline-item, .influence-stat {
    page-break-inside: avoid; break-inside: avoid;
  }
}
@page { size: letter; margin: 0; }
