/* Glossary links in My Notes (see glossary.js) */
.guide-panel a.gl-term {
  color: inherit;
  text-decoration: underline dotted rgba(129, 140, 248, 0.9);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: help;
}
.guide-panel a.gl-term:hover { color: #a5b4fc; }

.gl-pop {
  position: absolute; z-index: 1000;
  width: min(340px, calc(100vw - 16px));
  padding: 0.8rem 0.95rem;
  background: #1e1b4b; color: #e2e8f0;
  border: 1px solid rgba(129, 140, 248, 0.5); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  font-size: 0.86rem; line-height: 1.5;
}
.gl-pop-title { font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.gl-pop-def { color: #cbd5e1; }
.gl-pop-link {
  display: inline-block; margin-top: 0.55rem;
  color: #a5b4fc; font-weight: 600; text-decoration: none;
}
.gl-pop-link:hover { text-decoration: underline; }

.gl-box {
  margin-top: 1rem; padding: 0.75rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.gl-box-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.5rem; }
.gl-box-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gl-chip {
  padding: 0.25rem 0.65rem; border-radius: 999px;
  background: rgba(99, 102, 241, 0.18); border: 1px solid rgba(129, 140, 248, 0.45);
  color: #c7d2fe; font-size: 0.8rem; text-decoration: none;
}
.gl-chip:hover { background: rgba(99, 102, 241, 0.32); color: #fff; }
