.term-help {
  cursor: pointer;
  color: #0d6efd;
  text-decoration: underline;
  text-decoration-color: #0d6efd;
}
.term-help:hover { color: #0a58ca; text-decoration-color: #0a58ca; }
.term-help .bi { font-size: 0.8em; color: #0d6efd; margin-left: 2px; }
.term-help:hover .bi { color: #0a58ca; }

/* 用語末尾に右下付きの極小虫眼鏡アイコン (Bootstrap Icons bi-search) */
.term-help::after {
  content: "\F52A";
  font-family: 'bootstrap-icons';
  font-size: 0.5em;
  vertical-align: sub;
  margin-left: 1px;
  opacity: 0.7;
  text-decoration: none;
  display: inline-block;
}
.term-help:hover::after { opacity: 1; }
/* 既に手書きで <i class="bi"> が入っている要素は二重表示しない */
.term-help:has(> .bi)::after { content: none; }

/* Popover を読みやすく */
.popover { max-width: 320px; }
.popover-body { padding: 0; }
.glossary-popover-body {
  font-size: 0.92rem;
  line-height: 1.75;
  padding: 12px 14px;
}
.glossary-popover-body p { margin-bottom: 8px; }
.glossary-popover-body p:last-child { margin-bottom: 0; }
.glossary-popover-body .badge { font-size: 0.78rem; padding: 5px 10px; }
.glossary-popover-body .badge:hover { opacity: 0.85; }

/* impact 項目末尾の「もっと詳しく」バッジ（term-help と同じ popover トリガー扱い） */
.impact-explain-badge {
  display: inline-block;
  background: #0d6efd;
  color: #fff !important;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-left: 6px;
  border-bottom: none;        /* .term-help の破線を打ち消し */
  text-decoration: none;
}
.impact-explain-badge:hover {
  background: #0a58ca;
  color: #fff !important;
  border-bottom: none;
}
.impact-explain-badge .bi { color: #fff; margin-left: 0; }
.impact-explain-badge:hover .bi { color: #fff; }
