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

.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 a,
.glossary-alpha-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    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-alpha-nav.is-stuck ~ .glossary-stuck-spacer {
    display: block;
}

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

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

.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 {
    width: 44px;
    height: 44px;
    background: #F3F8FF;
    color: #0075FF;
    font-size: 22px;
    font-weight: 700;
    border-radius: 10px;
    display: 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: 2px;
}

.glossary-term-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #001B2F;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 9px 0;
    transition: color 0.15s;
}

.glossary-term-item a:hover {
    color: #0075FF;
}

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

.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: 13px;
    opacity: 0;
    color: #0075FF;
    transition: opacity 0.15s, transform 0.15s;
}

.glossary-empty {
    padding-left: 60px;
    color: #cbd5e1;
    font-size: 14px;
}

@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 {
        width: 30px;
        height: 28px;
        font-size: 12px;
    }

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