.context-help {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex: none;
}

.context-help .help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.context-help .help-trigger[aria-expanded='true'],
.context-help .help-trigger[aria-expanded='true']:hover:not(:disabled) {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}

.context-help .help-content {
  position: fixed;
  z-index: 45;
  display: block;
  width: min(360px, calc(100% - 24px));
  max-height: min(60dvh, 380px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 14px;
  border: 2px solid var(--forest);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 3px 7px 20px #140f164d;
  scrollbar-color: var(--edge) var(--paper);
  scrollbar-width: thin;
}

.context-help .help-content[hidden] {
  display: none;
}

.help-content .help-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.35rem;
  color: var(--ink);
}

.help-content .help-title {
  display: block;
  margin-bottom: 10px;
  padding-right: 40px;
  color: var(--forest);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.08rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.help-content .help-line {
  display: block;
  margin-block: 8px;
  color: var(--ink);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.context-help :focus-visible {
  outline: 3px solid var(--burgundy, var(--rust));
  outline-offset: -3px;
}

@media (forced-colors: active) {
  .context-help .help-content,
  .context-help .help-trigger[aria-expanded='true'] {
    border: 3px double Highlight;
  }

  .context-help :focus-visible {
    outline-color: Highlight;
  }
}
