/* Tailwind config extension */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Field rows */
.field-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8125rem;
}
.field-row:last-child { border-bottom: none; }
.field-row > span:first-child {
  flex-shrink: 0;
  width: 110px;
  min-width: 110px;
}
.field-row > span:last-child {
  flex: 1;
  text-align: right;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* Score bars */
.score-track {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 3px;
}

/* Nav tabs */
.nav-tab {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.nav-tab:hover { background: #f1f5f9; }
.nav-tab.active {
  background: #1a365d;
  color: white;
}

/* Card section title — McKinsey style: thin gold accent */
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a365d;
  border-bottom: 2px solid #c8a251;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

/* Profile section card */
.profile-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
}

/* Tags */
.tag {
  display: inline-block;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.tag-blue { background: #eff6ff; color: #1d4ed8; }
.tag-green { background: #f0fdf4; color: #15803d; }
.tag-amber { background: #fffbeb; color: #b45309; }
.tag-red { background: #fef2f2; color: #dc2626; }

/* Badge in header */
.header-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Profile Hero ── */
.profile-hero {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.profile-hero .hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a365d;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.profile-hero .hero-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 4px;
}
.profile-hero .hero-accent {
  width: 48px;
  height: 3px;
  background: #c8a251;
  border-radius: 2px;
  margin: 12px 0 16px;
}
.profile-hero .hero-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.profile-hero .hero-metric {
  display: flex;
  flex-direction: column;
}
.profile-hero .hero-metric-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}
.profile-hero .hero-metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-top: 2px;
}

/* ── Score Bars (McKinsey) ── */
.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.8125rem;
}
.score-label {
  width: 130px;
  flex-shrink: 0;
  color: #475569;
  font-weight: 500;
}
.score-bar-bg {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: #1a365d;
  transition: width 0.4s ease;
}
.score-value {
  width: 28px;
  text-align: right;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #1a365d;
}

/* ── Risk Traffic Lights ── */
.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8125rem;
}
.risk-item:last-child { border-bottom: none; }
.risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.risk-dot-ok { background: #22c55e; }
.risk-dot-watch { background: #f59e0b; }
.risk-dot-risk { background: #ef4444; }

/* ── Strengths / Weaknesses ── */
.sw-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.sw-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
}
.sw-icon-plus { background: #dcfce7; color: #15803d; }
.sw-icon-minus { background: #fee2e2; color: #dc2626; }

/* ── Contact Card ── */
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.contact-card:last-child { border-bottom: none; }
.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #1a365d;
  flex-shrink: 0;
  overflow: hidden;
}
.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Diligence Questions ── */
.dq-item {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.dq-item:last-child { border-bottom: none; }
.dq-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a365d;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── M&A Signal Item ── */
.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8125rem;
}
.signal-item:last-child { border-bottom: none; }

/* Mobile: field rows stack when value is long */
@media (max-width: 640px) {
  .field-row {
    font-size: 0.75rem;
    gap: 4px;
  }
  .field-row .tag {
    font-size: 9px;
    padding: 1px 4px;
  }
  .profile-hero .hero-name { font-size: 1.25rem; }
  .profile-hero .hero-metrics { gap: 20px; }
  .profile-hero { padding: 16px; }
  .profile-card { padding: 14px; }
  .score-label { width: 100px; }
}
