/**
 * PLEROMA DESIGN STUDIOS — Technical Hover-to-Info System
 * Box styling: Studio Header Green (#7CB305 / #639204)
 * Typography: Slate & Cool Grey (#1E293B, #334155, #475569, #64748B)
 */

/* Subtle underline for elements with hover info */
.ev-has-info, [data-info-key] {
  position: relative;
  cursor: help !important;
  border-bottom: 1.5px dotted #7CB305 !important;
  transition: all 0.2s ease;
}

.ev-has-info:hover, [data-info-key]:hover {
  color: #557c03 !important;
  border-bottom-color: #557c03 !important;
}

/* Optional inline tiny info icon */
.ev-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #7CB305;
  background: #F4F9E8;
  border: 1px solid #C8E687;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
  pointer-events: none;
}

/* Floating Hover Tooltip Card */
#ev-hover-card {
  position: fixed;
  z-index: 999999;
  display: none;
  width: 320px;
  max-width: 90vw;
  background: #FFFFFF;
  border: 2.5px solid #7CB305;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(124, 179, 5, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  pointer-events: none; /* Allows mouse to smoothly leave element without flicker */
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

#ev-hover-card.ev-card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Card Header */
.ev-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.ev-card-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ev-card-badge {
  background: #7CB305;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ev-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0;
}

.ev-card-std {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7CB305;
  background: #F4F9E8;
  border: 1px solid #C8E687;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Card Body (Grey Text) */
.ev-card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
  margin: 0 0 8px 0;
}

/* Metric / Threshold Highlight Box */
.ev-card-highlight {
  background: #F8FAFC;
  border-left: 3px solid #7CB305;
  border-top: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.ev-card-highlight-label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.ev-card-highlight-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

/* Rule of Thumb / Practical Tip */
.ev-card-rule {
  font-size: 0.74rem;
  color: #64748B;
  font-style: italic;
  line-height: 1.35;
  margin: 0;
}
