/* glossary-v1.css — the glossary and exam-board pages. Chat G2, 29 September 2026.
 * Loaded after theory-v2.css, whose tokens (--ink, --muted, --line, --card, --cat, --cat-fill)
 * carry light and dark mode; nothing here sets a colour of its own except through them.
 * Written by hand, not by a builder; tools/build_glossary.py links it and stamps its URL. */

body.gl .tb { margin: 18px 0 0; }
body.gl .tb h2 { font-size: 19px; line-height: 25px; margin: 0 0 8px; }
body.gl .gl-test { --fill: var(--card); }
body.gl .gl-qt { font-weight: 750; font-size: 17px; line-height: 25px; margin: 2px 0 10px; }
body.gl .gl-ans { margin: 4px 0 0; padding-left: 20px; }
body.gl .gl-ans li { margin: 3px 0; }
body.gl .gl-also { margin: 10px 0 0; }

.gl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.gl-chips li { margin: 0; }
.gl-chips a {
  display: inline-block; padding: 7px 12px; min-height: 22px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-size: 14.5px; font-weight: 650; line-height: 20px; text-decoration: none;
  overflow-wrap: anywhere;
}
.gl-chips a:hover, .gl-chips a:focus-visible { border-color: var(--cat); }

.thero .tchips a { color: inherit; }

/* index: A to Z jump bar */
.gl-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 0; }
.gl-az a {
  min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-weight: 750; text-decoration: none;
}
.gl-topic { margin: 16px 0 0; }
.gl-topic h3, .gl-letter h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 4px; }
.gl-topic .ttile { display: inline-flex; color: var(--ink); }
.gl-n {
  font-size: 12px; font-weight: 750; color: var(--muted); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 4px;
}
.gl-letter { margin: 18px 0 0; scroll-margin-top: 70px; }
.gl-letter dl { margin: 0; display: grid; gap: 8px; }
.gl-letter dl > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.gl-letter dt { font-weight: 750; margin: 0 0 2px; }
.gl-letter dt a { color: var(--ink); }
.gl-letter dd { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 21px; }

/* boards */
.gl-theme { margin: 22px 0 0; }
.gl-theme h2 { font-size: 19px; margin: 0 0 4px; }
.gl-theme h2 a { color: var(--ink); }
.gl-seclist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.gl-seclist li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.gl-seclist a { color: var(--ink); font-weight: 650; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.gl-code {
  display: inline-block; font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 800;
  color: var(--muted); margin-right: 4px; white-space: nowrap;
}
.gl-sec { margin: 22px 0 0; scroll-margin-top: 70px; }
.gl-sec h2 { font-size: 18px; line-height: 24px; margin: 0 0 2px; }
body.gl .small { color: var(--muted); }
