.glossary-nav-sentinel {
    height: 1px;
    width: 100%;
}

.glossary-search-wrap {
    position: relative;
    margin-bottom: 16px;
}

.glossary-search-input {
    width: 100%;
    height: 48px;
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    padding: 0 48px 0 16px;
    font-size: 15px;
    color: #001B2F;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.glossary-search-input:focus {
    border-color: #0075FF;
    box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.12);
}

.glossary-search-input::placeholder {
    color: #94a3b8;
}

.glossary-search-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.glossary-search-clear:hover {
    color: #0075FF;
}

.glossary-alpha-nav {
    background: #F3F8FF;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: border-radius 0.3s ease;
    z-index: 200;
}

.glossary-alpha-nav.is-stuck {
    position: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 8px 40px;
}

.glossary-alpha-nav.is-filtering {
    opacity: 0.45;
}

.glossary-alpha-nav a,
.glossary-alpha-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.glossary-alpha-nav a.has-items {
    color: #0075FF;
}

.glossary-alpha-nav a.has-items:hover {
    background: #0075FF;
    color: #fff;
}

.glossary-alpha-nav a.has-items.active {
    background: #0075FF;
    color: #fff;
    font-size: 15px;
}

.glossary-alpha-nav span.empty {
    color: rgba(0, 117, 255, 0.2);
    cursor: default;
    pointer-events: none;
}

.glossary-stuck-spacer {
    display: none;
    height: 60px;
}

.glossary-content {
    padding-top: 8px;
}

.glossary-no-results {
    padding: 12px 0;
    color: #64748b;
    font-size: 14px;
}

.glossary-letter-section {
    margin-bottom: 48px;
    scroll-margin-top: 160px;
}

.glossary-letter-section.is-hidden,
.glossary-term-item.is-hidden {
    display: none;
}

.glossary-letter-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.glossary-letter-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.glossary-letter-badge {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #F3F8FF;
    color: #0075FF;
    font-size: 22px;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.glossary-term-list {
    list-style: none;
    padding: 0 0 0 60px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.glossary-term-item {
    margin: 0;
}

.glossary-term-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.glossary-term-link.no-link {
    cursor: default;
}

.glossary-term-link:hover {
    border-color: #0075FF;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.glossary-term-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #F3F8FF;
}

.glossary-term-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.glossary-term-body {
    flex: 1;
    min-width: 0;
}

.glossary-term-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.glossary-term-title {
    color: #001B2F;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.glossary-term-description {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.glossary-term-description p {
    margin: 0;
}

.glossary-term-badge {
    font-size: 10px;
    font-weight: 700;
    background: #F3F8FF;
    color: #0075FF;
    border: 1px solid #0075FF;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.glossary-arrow {
    font-size: 18px;
    color: #0075FF;
    opacity: 0.7;
    flex-shrink: 0;
    align-self: center;
    transition: transform 0.15s, opacity 0.15s;
}

.glossary-term-link:hover .glossary-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .glossary-alpha-nav {
        border-radius: 14px;
        padding: 8px 10px;
    }

    .glossary-alpha-nav.is-stuck {
        top: 60px;
        padding: 8px 10px;
    }

    .glossary-alpha-nav a,
    .glossary-alpha-nav span {
        min-width: 30px;
        height: 28px;
        font-size: 12px;
        padding: 0 6px;
    }

    .glossary-search-input {
        height: 44px;
        font-size: 14px;
    }

    .glossary-term-list {
        padding-left: 0;
    }

    .glossary-term-link {
        padding: 14px;
        gap: 12px;
    }

    .glossary-term-image {
        width: 56px;
        height: 56px;
    }

    .glossary-term-title {
        font-size: 16px;
    }

    .glossary-term-description {
        font-size: 13px;
    }
}