/* Preserve the surrounding sentence's typography and line height. */
button.apollo-term-trigger,
button.apollo-term-trigger:hover,
button.apollo-term-trigger:active {
  display: inline;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: .12em;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: underline dotted;
  text-decoration-color: #42765f;
  text-underline-offset: .2em;
  cursor: help;
}
button.apollo-term-trigger:focus-visible,
button.apollo-term-trigger[aria-expanded=true] {
  outline: 2px solid #197050;
  outline-offset: 2px;
  background: #eff9ea;
}
.apollo-term-pop {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  width: min(23rem, calc(100vw - 20px));
  padding: 14px 16px;
  border: 1px solid #93b6a3;
  border-radius: 10px;
  color: #19392d;
  background: white;
  box-shadow: 0 8px 26px #12332628;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.apollo-term-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.apollo-term-head strong { font-size: 1rem; color: #16462e; }
.apollo-term-close {
  display: inline-block; flex: none;
  min-width: 44px; min-height: 32px;
  padding: 3px 7px; border: 1px solid #bdd0c3; border-radius: 5px;
  background: #f5f9f5; color: #24533a; font-size: .875rem; line-height: 1.25;
}
.apollo-term-pop p { margin: .5rem 0 0; }
.apollo-term-pop .apollo-term-example { padding-top: .5rem; border-top: 1px solid #dbe6dd; color: #496155; font-size: .925rem; }
@media (pointer: coarse) { .apollo-term-close { min-height: 44px; } }
@media (forced-colors: active) {
  button.apollo-term-trigger { text-decoration-color: LinkText; }
  .apollo-term-pop { border-color: CanvasText; }
}
