.context-help-button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #9db5ce;
  border-radius: 50%;
  background: #fff;
  color: #174f82;
  cursor: help;
  vertical-align: middle;
}

.context-help-button:hover,
.context-help-button[aria-expanded="true"] {
  border-color: #276d9f;
  background: #edf6fc;
  color: #0d3d68;
}

.context-help-button:focus-visible {
  outline: 3px solid #7ad9ed;
  outline-offset: 2px;
}

.context-help-button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.context-help-trigger {
  text-decoration: none;
  cursor: help;
}

.context-help-trigger:focus-visible {
  outline: 2px solid #4ba7c6;
  outline-offset: 2px;
  border-radius: 2px;
}

.context-help-tooltip {
  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: min(360px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  padding: 10px 13px;
  border: 1px solid #d5e0eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 6px 22px rgb(24 48 72 / 18%);
  color: #26384a;
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
  white-space: normal;
  pointer-events: auto;
  user-select: text;
}

.context-help-tooltip[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .context-help-tooltip {
    max-width: calc(100vw - 20px);
    padding: 9px 11px;
    font-size: 15px;
  }
}

/* A full paragraph is clipped only after its available lines are filled. */
[data-overflow-explanation] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--explanation-lines, 2);
  overflow: hidden;
}
