/* News visual treatment, with viewport-aware placement shared by both readers.
   The marker limits these rules to previews managed by the shared script. */
.article-glossary.news-glossary { position: relative; display: inline; white-space: normal; }
.article-glossary .news-glossary__trigger {
  appearance: none; display: inline; font: inherit; letter-spacing: inherit;
  line-height: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 2px dotted currentColor; border-radius: 0;
  padding: 0 1px 1px; margin: 0; cursor: help; text-align: inherit;
}
.article-glossary .news-glossary__trigger:focus-visible { outline: 2px solid #ff7400; outline-offset: 3px; }
.article-glossary.news-glossary .news-glossary__card {
  position: fixed; inset: auto; transform: none; z-index: 1100; display: none;
  box-sizing: border-box; width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow: auto;
  border: 1px solid #d9e1ea; border-top: 3px solid #ff7400; border-radius: 2px;
  background: #fff; box-shadow: 0 14px 32px #0f172a29; color: #172033;
  padding: 18px 20px 16px; font-size: 15px; line-height: 1.45; text-align: left; white-space: normal;
}
.article-glossary.news-glossary.is-open .news-glossary__card { display: block; }
.article-glossary .news-glossary__card::after { display: none; }
.article-glossary :is(.news-glossary__title, .news-glossary__definition) { display: block; }
.article-glossary .news-glossary__title { margin-bottom: 8px; color: #111827; font-size: 20px; font-weight: 600; line-height: 1.2; }
.article-glossary .news-glossary__definition { color: #667085; font-size: 15px; line-height: 1.45; }
.article-glossary a.news-glossary__link {
  display: inline-flex; align-items: center; width: auto; min-height: 44px;
  margin-top: 14px; padding: 9px 12px; border: 1px solid #111827;
  border-radius: 999px; color: #111827; font-size: 14px; font-weight: 600;
  line-height: 1.4; text-decoration: none;
}
.article-glossary a.news-glossary__link:hover, .article-glossary a.news-glossary__link:focus-visible { background: #111827; color: #fff; }
@media print { .article-glossary .news-glossary__card { display: none !important; } }
