/* Словарь техники (/advice/slovar, src/glossary.js). */
.glossary { max-width: 860px; }
.glossary h1 { margin-bottom: 6px; }
.gl-tools { padding: 10px 0 12px; margin: 8px 0 4px; border-bottom: 1px solid var(--line); }
.gl-search input { width: 100%; max-width: 520px; font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.gl-search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.gl-abc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.gl-abc a { min-width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 8px;
  background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.gl-abc a:hover { background: var(--accent-soft); color: var(--accent); }
.gl-abc a.off { opacity: .35; pointer-events: none; }
.gl-letter { scroll-margin-top: calc(100px - var(--sp-top, 0px)); }
.gl-letter h2 { font-size: 28px; margin: 26px 0 6px; color: var(--accent); }
.gl-letter dl { margin: 0; }
.gl-term { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(100px - var(--sp-top, 0px)); }
.gl-term:target { background: var(--accent-soft); box-shadow: 0 0 0 10px var(--accent-soft); border-radius: 4px; }
.gl-term dt { font-weight: 700; font-size: 18px; }
.gl-a { text-decoration: none; }
.gl-a:hover { color: var(--accent); }
.gl-aka { font-weight: 400; color: var(--muted); font-size: 15px; }
.gl-term dd { margin: 4px 0 0; }
.gl-term dd p { margin: 0 0 6px; max-width: 720px; }
.gl-more { font-size: 15px; }
.gl-more a { color: var(--accent); }
.gl-src { color: var(--muted); }
.gl-list { margin-top: 4px; }
.gl-empty { padding: 16px; background: var(--warn-soft); color: var(--warn-ink); border-radius: 12px; }
.gl-back { margin-top: 24px; }
@media (max-width: 700px) {
  .gl-tools { padding-top: 8px; }
  .gl-abc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .gl-abc::-webkit-scrollbar { display: none; }
  .gl-abc a { flex: 0 0 auto; min-width: 40px; min-height: 40px; }
  .gl-letter, .gl-term { scroll-margin-top: calc(80px - var(--sp-top, 0px)); }
}
