.sil-glossary {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

.sil-glossary-search-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 28px;
    text-align: center;
}

.sil-glossary-search-title {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 800;
    color: #1d4ed8;
}

.sil-glossary-search {
    margin-bottom: 14px;
    text-align: left;
}

.sil-glossary-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    font-size: 16px;
    color: #374151;
    border: none;
    background: #f3f4f6;
    border-radius: 10px;
    outline: none;
    transition: box-shadow .15s ease;
}

.sil-glossary-search-input::placeholder {
    color: #9ca3af;
}

.sil-glossary-search-input:focus {
    box-shadow: 0 0 0 2px #c7d2fe;
}

.sil-glossary-popular {
    margin: 0;
    text-align: left;
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
}

.sil-glossary-popular-label {
    font-weight: 700;
    margin-right: 4px;
}

.sil-glossary-popular-tag {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.sil-glossary-popular-tag:hover {
    text-decoration: underline;
}

.sil-glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sil-glossary-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    transition: background .15s ease, color .15s ease;
}

.sil-glossary-letter:hover {
    background: #e06057;
    color: #fff;
}

.sil-glossary-letter.is-disabled {
    color: #d1d5db;
    background: transparent;
    cursor: default;
}

.sil-glossary-group {
    margin-bottom: 32px;
    scroll-margin-top: 20px;
}

.sil-glossary-group-title {
    font-size: 22px;
    font-weight: 700;
    color: #e06057;
    border-bottom: 2px solid #e06057;
    padding-bottom: 6px;
    margin: 0 0 14px;
}

.sil-glossary-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sil-glossary-item dt {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #111827;
}

.sil-glossary-item dt a.sil-glossary-term-link {
    color: #e06057;
    text-decoration: none;
}

.sil-glossary-item dt a.sil-glossary-term-link:hover {
    text-decoration: underline;
}

.sil-glossary-item dd {
    margin: 0;
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1.5;
}

.sil-glossary-item.is-hidden {
    display: none;
}

.sil-glossary-group.is-hidden {
    display: none;
}

.sil-glossary-no-results {
    text-align: center;
    color: #6b7280;
    padding: 30px 0;
}

.sil-glossary-empty-notice {
    color: #6b7280;
}
