/* Optional definitions keep the original prose and dark learning palette. */
.term-help-trigger,
.term-help-mark {
  display: inline;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 2px;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  vertical-align: baseline;
  white-space: normal;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #72dec2;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  cursor: help;
}
.term-help-trigger:hover,
.term-help-mark:hover,
.term-help-trigger[aria-expanded="true"] {
  color: #a4efcf;
  background: #1a4a46;
}
.term-help-trigger:focus-visible {
  outline: 2px solid #8be9d6;
  outline-offset: 3px;
}
p.term-help-hint {
  margin: 0 0 15px;
  padding: 0;
  color: #a7c3bf;
  font-family: var(--sans, Inter, sans-serif);
  font-size: 12px;
  line-height: 1.65;
}
.term-help-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  inset: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #eef8f5;
  color-scheme: dark;
  background: #123a3f;
  border: 1px solid #5b8984;
  border-radius: 12px;
  box-shadow: 0 18px 70px #03171999;
  font-family: var(--sans, Inter, sans-serif);
  overflow-wrap: anywhere;
}
.term-help-dialog::backdrop { background: #03191bb3; }
.term-help-dialog .term-help-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #123a3f;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.term-help-dialog .term-help-label {
  color: #a7c3bf;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.term-help-dialog .term-help-dismiss {
  flex-shrink: 0;
  min-width: 72px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #5b8984;
  border-radius: 5px;
  background: #0d3035;
  color: #eef8f5;
  font: 500 13px/1.4 var(--sans, Inter, sans-serif);
  cursor: pointer;
}
.term-help-dialog .term-help-dismiss:hover { background: #20504f; }
.term-help-dialog .term-help-title {
  margin: 0 0 15px;
  color: #c9fff0;
  font-family: var(--serif, Syne, sans-serif);
  font-size: clamp(24px, 5vw, 31px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.8px;
}
.term-help-dialog .term-help-definition {
  margin: 0 0 20px;
  color: #d1e6dc;
  font-size: 16px;
  line-height: 1.75;
}
.term-help-dialog .term-help-lesson {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #8be9d6;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.term-help-dialog .term-help-lesson:hover { color: #c9fff0; }
.term-help-dialog :is(button,a):focus-visible {
  outline: 3px solid #f0c78b;
  outline-offset: 4px;
}
@media (max-width: 400px) {
  .term-help-dialog { padding: 18px; }
  .term-help-dialog .term-help-definition { font-size: 15px; }
}
@media print {
  .term-help-dialog,
  p.term-help-hint { display: none !important; }
  .term-help-trigger {
    color: inherit;
    background: transparent;
    text-decoration: none;
  }
}
@media (forced-colors: active) {
 .term-help-trigger { color:LinkText; text-decoration-color:LinkText; }
 .term-help-trigger:focus-visible { outline-color:Highlight; }
 .term-help-dialog,.term-help-dialog .term-help-header { background:Canvas; color:CanvasText; border-color:CanvasText; box-shadow:none; }
 .term-help-dialog::backdrop { background:Canvas; opacity:.8; }
 .term-help-dialog .term-help-dismiss { background:ButtonFace; color:ButtonText; border-color:ButtonText; }
 .term-help-dialog .term-help-lesson { color:LinkText; }
 .term-help-dialog :is(button,a):focus-visible { outline-color:Highlight; }
}

/* The marks inside links/labels remain text: keyboard help belongs to their owner. */
.term-help-mark { display:inline; font:inherit; color:inherit; letter-spacing:inherit; }
.term-help-sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.term-help-dialog .term-help-choices { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.term-help-dialog .term-help-choices[hidden] { display:none; }
.term-help-dialog .term-help-choices button { min-height:44px; padding:7px 11px; border:1px solid #5b8984; border-radius:5px; background:#0d3035; color:#d1e6dc; font:500 13px/1.4 var(--sans,Inter,sans-serif); cursor:pointer; }
.term-help-dialog .term-help-choices button[aria-pressed="true"] { background:#225b54; border-color:#8be9d6; color:#c9fff0; }
.term-help-dialog .term-help-popup-hint { margin:16px 0 0; padding-top:14px; border-top:1px solid #426e6a; color:#a7c3bf; font:12px/1.65 var(--sans,Inter,sans-serif); }
svg[aria-keyshortcuts~="Alt+Enter"]:focus-visible { outline:2px solid #8be9d6; outline-offset:4px; }
@media print { .term-help-mark { text-decoration:none; color:inherit; } }
@media (forced-colors:active) { .term-help-mark { color:LinkText; text-decoration-color:LinkText; } .term-help-dialog .term-help-choices button { color:ButtonText; background:ButtonFace; border-color:ButtonText; } .term-help-dialog .term-help-choices button[aria-pressed="true"] { outline:2px solid Highlight; } }

.term-help-text{font:inherit;color:inherit;letter-spacing:inherit;line-height:inherit;min-width:0}
