/* Explanation cards for hard words (ne-glosar.js). Ported from nr-glosar.css and the card part of nr-previews.css (nouaromania.eu);
 * colours and fonts come from this site's own tokens (site.css :root), so the card looks like Nove Europa. Hidden until option ne_gl_live = 1. */
.prose .negl-term, .hubflow .negl-term {
  text-decoration: underline dotted var(--burg);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: help;
  border-radius: 2px;
}
.negl-term:focus-visible { outline: 3px solid var(--burg); outline-offset: 2px; }

.negl-card {
  position: absolute;
  z-index: 9990;
  width: min(440px, calc(100vw - 24px));
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--paper-3);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(38, 16, 26, 0.18), 0 2px 6px rgba(38, 16, 26, 0.10);
  overflow: hidden;
  font-family: var(--f-read);
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
}
/* As on nouaromania.eu (owner's choice there, logs 402-432): 12% see-through since 2026-11-11 (owner; was 30% as on nouaromania.eu) with the text behind blurred; browsers without blur keep the solid card. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .negl-card { background: rgba(255, 254, 250, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.negl-body { padding: 22px 26px 18px; display: flex; flex-direction: column; gap: 5px; }
.negl-body:last-child { padding-bottom: 22px; }
.negl-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.negl-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--burg);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.negl-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.negl-foot { padding: 0 26px 22px; }
.negl-card a.negl-go { font-weight: 600; font-size: 16px; color: var(--burg); text-decoration: none; }
.negl-card a.negl-go::after { content: " \2192"; }
.negl-card a.negl-go:hover { text-decoration: underline; }
.negl-card :focus-visible { outline: 2px solid var(--burg); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .negl-card { animation: negl-in 0.14s ease-out; }
  @keyframes negl-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media print { .negl-card { display: none; } .negl-term { text-decoration: none; } }
