/* A single familiar message-like object for authored definitions. It remains
   a tooltip, not a simulated conversation or another search interface. */
body .glossary-popover {
  width:min(350px,calc(100vw - 24px));max-width:calc(100vw - 24px);
  padding:1rem 1.15rem 1.05rem;border:1px solid var(--v-rule,#ceddd2);
  border-radius:18px 18px 18px 4px;
  background:#fff;color:var(--v-ink,#183f34);
  box-shadow:0 8px 28px #172e2820;isolation:isolate;
}
body .glossary-popover__sender {
  display:flex;align-items:center;gap:.55rem;margin:0 0 .35rem;min-height:36px;
  color:var(--v-accent,#355d4b);font:500 .66rem/1.4 var(--font-mono,monospace);
  letter-spacing:.07em;text-transform:uppercase;
}
body .glossary-popover__orb {width:40px;height:40px;flex:0 0 40px;display:block;color:var(--v-accent,#355d4b);margin:-3px 0 -3px -4px}
body .glossary-popover .glossary-popover__term {font-weight:650;font-size:1.06rem;line-height:1.35;margin:0 0 .45rem;color:var(--v-ink,#183f34)}
body .glossary-popover .glossary-popover__def {font-size:.91rem;line-height:1.65;margin:0;color:var(--v-ink,#183f34);max-width:none}
body .glossary-popover .glossary-popover__note {font-size:.65rem;line-height:1.5;margin:.8rem 0 0;padding-top:.55rem;border-top:1px solid var(--v-rule,#ceddd2);color:var(--v-accent,#355d4b)}
body .glossary-popover .glossary-popover__visual {margin:.75rem 0 0;padding:.6rem;border-radius:8px;background:var(--v-tint,#f4f8f5)}
body .glossary-popover .glossary-popover__visual img {max-height:110px;object-fit:contain;width:100%}
body .glossary-popover .glossary-popover__visual figcaption {font-size:.64rem;line-height:1.45;color:var(--v-accent,#355d4b);margin-top:.4rem}
@media(max-width:639px){body .glossary-popover {padding:.8rem 1rem;border-radius:15px 15px 15px 3px}body .glossary-popover .glossary-popover__def {font-size:.88rem}}

/* Follow the surrounding ink, including light text on a dark chapter. */
body dfn.term {
  color:inherit;border-bottom:0;background:none;cursor:help;font-style:normal;
  text-decoration-line:underline;text-decoration-style:dotted;
  text-decoration-color:currentColor;text-decoration-thickness:1.5px;
  text-underline-offset:.22em;text-decoration-skip-ink:auto;
}
body dfn.term:hover,body dfn.term:focus-visible {
  text-decoration-style:solid;text-decoration-thickness:2px;
}
body dfn.term:focus-visible {outline:2px solid currentColor;outline-offset:4px;border-radius:2px}
.glossary-scroll-cue {display:inline-flex;align-items:center;gap:.8rem;margin-top:1.3rem;padding:.6rem 0;color:inherit;font:600 .8rem/1.4 var(--font-mono,monospace);text-decoration:none}
.glossary-scroll-cue span {display:grid;place-items:center;width:2.5rem;height:2.5rem;border:1px solid currentColor;border-radius:50%;font:400 1.5rem/1 sans-serif;animation:glossary-scroll-nudge 2s ease-in-out infinite}
.glossary-scroll-cue:focus-visible {outline:2px solid currentColor;outline-offset:5px}
@keyframes glossary-scroll-nudge {0%,20%,100% {transform:translateY(0)} 55% {transform:translateY(7px)} 75% {transform:translateY(3px)}}
.glossary-scroll-cue:hover span,.glossary-scroll-cue:focus-visible span {animation-play-state:paused}
@media(prefers-reduced-motion:reduce) {.glossary-scroll-cue span {animation:none}}
