/* SocraClass 공통 전역 툴팁 스타일 */
.socraTooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  box-sizing: border-box;
  max-width: min(260px, calc(100vw - 16px));
  width: max-content;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(32, 43, 56, 0.97);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  pointer-events: none;
  text-align: left;
  white-space: normal;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 80ms ease, transform 80ms ease;
}

.socraTooltip[hidden] {
  display: none;
}

.socraTooltip.isVisible {
  opacity: 1;
  transform: translateY(0);
}

.socraTooltip::after {
  position: absolute;
  left: var(--arrow-x, 50%);
  bottom: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(32, 43, 56, 0.96);
  content: "";
}

.socraTooltip.isBelow::after {
  top: -6px;
  bottom: auto;
  border-top: 0;
  border-bottom: 6px solid rgba(32, 43, 56, 0.96);
}
