/* Terms of the trade, on every page. A word that is in the glossary (/glossary) is underlined with dots; its meaning
   opens when the mouse rests on it or the keyboard focuses it, with a link to the full definition.
   static/terms.js marks the words in the prose of a page; the analyst digest marks its own sentences on the server.
   Both write the same markup. */

.dg-term{position:relative;border-bottom:1.5px dotted color-mix(in srgb,currentColor 65%,transparent);cursor:help;outline:none}
.dg-term:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:3px}
.dg-tip{position:absolute;inset-block-end:100%;left:50%;z-index:60;box-sizing:border-box;width:max-content;max-width:min(300px,78vw);margin-block-end:10px;padding:10px 15px 11px;border-radius:14px;background:var(--ink);color:var(--bg);font-size:13px;font-weight:500;line-height:1.95;text-align:start;white-space:normal;box-shadow:0 12px 32px rgba(15,23,42,.28);opacity:0;visibility:hidden;transform:translateX(calc(-50% + var(--dx,0px)));transition:opacity .15s ease,visibility .15s}
/* an invisible bridge, so the mouse can travel from the word to the link inside without the tip closing */
.dg-tip::before{content:"";position:absolute;inset-inline:0;inset-block-start:100%;height:12px}
.dg-tip::after{content:"";position:absolute;inset-block-start:100%;left:calc(50% - var(--dx,0px));margin-left:-6px;border:6px solid transparent;border-top-color:var(--ink)}
.dg-tip a{display:block;margin-top:5px;color:inherit;font-size:12.5px;font-weight:650;text-decoration:underline;text-underline-offset:3px;opacity:.85}
.dg-tip a:hover{opacity:1}
.dg-term.below .dg-tip{inset-block-end:auto;inset-block-start:100%;margin-block-end:0;margin-block-start:10px}
.dg-term.below .dg-tip::before{inset-block-start:auto;inset-block-end:100%}
.dg-term.below .dg-tip::after{inset-block-start:auto;inset-block-end:100%;border-top-color:transparent;border-bottom-color:var(--ink)}
.dg-term:hover .dg-tip,.dg-term:focus .dg-tip,.dg-term:focus-within .dg-tip{opacity:1;visibility:visible}
@media (prefers-reduced-motion:reduce){.dg-tip{transition:none}}
@media print{.dg-tip{display:none}.dg-term{border-bottom:0}}
