/* ═══════════════════════════════════════════════════════════════════
   SHAPE EXECUTIVE — GLOBAL TOOLTIP ENGINE
   tooltip.css — v1.0
   Scoped to .se-tooltip-trigger and .se-tooltip-popup only.
   No global styles. No brand token overrides.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Trigger: the term in body text ──────────────────────────────── */
.se-tooltip-trigger {
  border-bottom: 1px dotted rgba(30,37,48,0.35);
  cursor: help;
  transition: border-color 0.15s;
  white-space: nowrap;
}

.se-tooltip-trigger:hover,
.se-tooltip-trigger.se-active {
  border-bottom-color: rgba(30,37,48,0.7);
}

/* ── Popup container ─────────────────────────────────────────────── */
.se-tooltip-popup {
  position: fixed;
  z-index: 9000;
  background: #1e2530;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 1rem 1.1rem 0.85rem;
  max-width: 280px;
  min-width: 200px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.se-tooltip-popup.se-tooltip-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Popup label ─────────────────────────────────────────────────── */
.se-tooltip-label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(157,168,178,0.7);
  margin-bottom: 0.35rem;
}

/* ── Term name ────────────────────────────────────────────────────── */
.se-tooltip-term {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* ── Translation text ────────────────────────────────────────────── */
.se-tooltip-text {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: rgba(200,205,210,0.82);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

/* ── Learn More link ─────────────────────────────────────────────── */
.se-tooltip-link {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200,205,210,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,205,210,0.2);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.se-tooltip-link:hover {
  color: rgba(200,205,210,1);
  border-bottom-color: rgba(200,205,210,0.5);
}

/* ── Arrow indicator ─────────────────────────────────────────────── */
.se-tooltip-popup::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #1e2530;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: rotate(45deg);
  bottom: -4px;
  left: 16px;
}

.se-tooltip-popup.se-above::before {
  bottom: auto;
  top: -4px;
  transform: rotate(225deg);
}

/* ── Mobile: click-activated, full-width ─────────────────────────── */
@media (max-width: 768px) {
  .se-tooltip-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-width: 100%;
    min-width: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: translateY(100%);
    padding: 1.25rem 1.5rem 2rem;
  }
  .se-tooltip-popup.se-tooltip-visible {
    transform: translateY(0);
  }
  .se-tooltip-popup::before {
    display: none;
  }
  .se-tooltip-trigger {
    border-bottom-style: dashed;
  }
}

/* ── Glossary pages: suppress tooltips (redundant) ──────────────── */
.arch-glossary .se-tooltip-trigger {
  border-bottom: none;
  cursor: text;
  pointer-events: none;
}
