.ngw-glossary { max-width: 1100px; margin-inline: auto; }
.ngw-glossary [hidden] { display: none !important; }
.ngw-glossary__intro { max-width: 72ch; font-size: 1.15rem; }
.ngw-glossary__filter { margin-block: 28px; padding: 24px; border: 1px solid var(--ngw-line); border-radius: 18px; background: var(--ngw-paper, #fff); }
.ngw-glossary__filter label { display: block; margin-bottom: 10px; font-weight: 700; }
.ngw-glossary__filter input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--ngw-line); border-radius: 10px; color: var(--ngw-ink); background: #fff; font: inherit; }
.ngw-glossary__filter p { margin-bottom: 0; }
.ngw-glossary__alphabet { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 28px; }
.ngw-glossary__alphabet a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ngw-line); border-radius: 10px; color: var(--ngw-ink); font-weight: 700; text-decoration: none; }
.ngw-glossary__group { margin-block: 36px; }
.ngw-glossary :is(.ngw-glossary__group,.ngw-glossary__term) { scroll-margin-top: 120px; }
.ngw-glossary__terms { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,26rem),1fr)); gap: 20px; }
.ngw-glossary__term { padding: 24px; border: 1px solid var(--ngw-line); border-radius: 18px; background: #fff; }
.ngw-glossary__term:target { outline: 2px solid var(--ngw-ink); outline-offset: 3px; }
.ngw-glossary__term h3 { margin-top: 0; }
.ngw-glossary__name { font-weight: 700; }
.ngw-glossary__related,.ngw-glossary__source { font-size: .9rem; }
.ngw-glossary :is(a,input):focus-visible { outline: 2px solid var(--ngw-ink); outline-offset: 3px; }
