/* page-glossary.css — rules that belong to glossary.html and nothing else.
   The page reuses the academy lesson layout (page-academy.css loads first). This file adds
   the term list: each term on a rule, its definition beside it on wide screens and under it
   on narrow ones, and links styled the same as the blog's.

   Tokens only: no hardcoded colours, radius 0. */

.sy-gloss {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  margin: 24px 0 0;
  border-top: 1px solid var(--color-line);
}
.sy-gloss dt,
.sy-gloss dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.sy-gloss dt {
  padding-right: 24px;
  font-size: var(--text-sm);
  color: var(--vy-text-primary);
  scroll-margin-top: 120px;            /* Clears the fixed nav when a term is linked directly */
}
.sy-gloss dd {
  max-width: 62ch;                     /* Matches the locked body measure */
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--vy-text-secondary);
}
.sy-gloss dt:target,
.sy-gloss dt:target + dd { background: var(--color-line-soft); }
.sy-gloss a {
  color: var(--vy-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-line);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--vy-dur-micro) var(--vy-ease);
}
.sy-gloss a:hover,
.sy-gloss a:focus-visible { text-decoration-color: currentColor; }

@media (max-width: 700px) {
  .sy-gloss { grid-template-columns: minmax(0, 1fr); }
  .sy-gloss dt { padding-bottom: 4px; border-bottom: 0; }
  .sy-gloss dd { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sy-gloss a { transition: none; }
}
