/*
 * «Словарь терминов» — /{язык}/glossary (вариант 3 «Поиск и карточки»,
 * владелец 01.12.2026: «цвета ближе к тем, что на сайте»). Цвета — те же
 * переменные .tp, что у «Лечения» и цен: синий бренда, мягкий синий фон,
 * линия карточки. Размеры — минимально допустимые (VISUAL-STANDARD.md):
 * карточка 20 px внутри, ряды через 12 px, блоки через 32 px.
 */
.gl .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gl .gl__intro { margin: 0 0 20px; max-width: 820px; }

.gl .gl__tools { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.gl .gl__tools[hidden] { display: none; }
.gl .gl__search { position: relative; display: block; max-width: 560px; }
.gl .gl__lens { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tp-ink-3); pointer-events: none; }
.gl .gl__search input { width: 100%; box-sizing: border-box; padding: 13px 16px 13px 44px; border: 1px solid #c6daf5; border-radius: 14px; background: #fff; font: inherit; font-size: 16px; color: var(--tp-ink); }
.gl .gl__search input:focus { outline: none; border-color: var(--tp-brand); box-shadow: 0 0 0 3px var(--tp-soft); }

.gl .gl__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gl .gl__chip { border: 0; cursor: pointer; padding: 7px 14px; border-radius: 999px; background: var(--tp-soft); color: var(--tp-brand); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; }
.gl .gl__chip:hover { background: #dbe7f8; }
.gl .gl__chip.is-on { background: linear-gradient(135deg, #033e8c 0%, #2b05c3 100%); color: #fff; }

.gl .gl__count { margin: 0 0 12px; font-size: 14px; color: var(--tp-ink-2); }

.gl .gl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; align-items: start; }
.gl .gl__card { min-width: 0; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--tp-line); border-radius: 20px; padding: 20px; box-shadow: 0 4px 18px rgba(3, 62, 140, .06); scroll-margin-top: 110px; }
.gl .gl__card[hidden] { display: none; }
/* Пришли по ссылке с «Лечения» или из статьи — термин подсвечен. */
.gl .gl__card:target { border-color: var(--tp-brand); box-shadow: 0 0 0 3px var(--tp-soft), 0 4px 18px rgba(3, 62, 140, .1); }

.gl .gl__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gl .gl__tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--tp-bg); color: var(--tp-brand); font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.gl a.gl__tag:hover { background: var(--tp-soft); text-decoration: none; }

.gl .gl__name { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--tp-ink); overflow-wrap: anywhere; }
.gl .gl__syn { margin: 0; font-size: 13px; color: var(--tp-ink-3); overflow-wrap: anywhere; }
.gl .gl__def { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tp-ink-2); overflow-wrap: anywhere; }
.gl .gl__more { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 700; color: var(--tp-brand); }

.gl .gl__empty { margin: 8px 0 0; padding: 20px; border-radius: 20px; background: var(--tp-bg); color: var(--tp-ink-2); text-align: center; }
.gl .gl__empty[hidden] { display: none; }
