.research-page .glossary-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.research-page .glossary-hint::before {
  content: "?";
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  place-items: center;
  border-radius: 50%;
  background: var(--article-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.research-page .term-trigger {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted currentColor;
  background: transparent;
  color: inherit;
  cursor: help;
  font: inherit;
  font-weight: 650;
  line-height: inherit;
  text-align: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.research-page .term-trigger:hover,
.research-page .term-trigger[aria-expanded="true"] {
  border-bottom-style: solid;
  color: var(--article-accent);
}

.research-page .term-trigger:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(42, 82, 226, .22);
  outline-offset: 3px;
}

.term-popover {
  position: fixed;
  z-index: 300;
  width: min(390px, calc(100vw - 32px));
  padding: 22px 50px 22px 22px;
  border: 1px solid #d8def1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px -28px rgba(17, 31, 78, .46);
  color: #080a10;
  font-family: "Golos Text", -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
}

.term-popover[hidden] {
  display: none;
}

.term-popover::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #2a52e2, #1fbf9f);
}

.term-popover-label {
  margin: 0 0 7px;
  color: #2a52e2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.term-popover-title {
  margin: 0;
  color: #080a10;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.term-popover-body p {
  margin: 12px 0 0;
  color: #3d4454;
  font-size: 15px;
  line-height: 1.55;
}

.term-popover-close {
  appearance: none;
  position: absolute;
  top: 15px;
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #dfe3ee;
  border-radius: 9px;
  background: #f6f8ff;
  color: #4c556a;
  cursor: pointer;
  font: 700 20px/1 "Golos Text", sans-serif;
}

.term-popover-close:hover {
  border-color: #aeb8d3;
  color: #080a10;
}

.term-popover-close:focus-visible {
  outline: 3px solid rgba(42, 82, 226, .22);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .term-popover {
    width: calc(100vw - 24px);
    padding: 20px 46px 20px 18px;
  }

  .term-popover-title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .term-popover:not([hidden]) {
    animation: term-popover-in .16s ease-out;
  }
}

@keyframes term-popover-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
