/* === Hide Drupal's default exposed form elements === */
.views-exposed-form .form-item-letter,
.views-exposed-form .form-actions {
    display: none !important;
}

/* === Glossary letter bar container === */
.glossary-letters {
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: 0.5rem; /* same as Tailwind gap-2 */
    justify-items: center;
    margin: 0 auto 1.5rem auto;
}

/* === Individual letter buttons === */
.glossary-letters button {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
    border-radius: 0.5rem; /* rounded-lg */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    height: auto; /* ← important: allow ratio to define height */
}

/* === Hover animation === */
.glossary-letters button:hover {
    background: #00FF40;
    color: #111827; /* Tailwind gray-900 */
}

/* === Active (selected) button === */
.glossary-letters button.is-active {
    background: #00FF40;
    color: #111827;
}

/* === Inactive (no items for that letter) === */
.glossary-letters button.opacity-40 {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    pointer-events: none;
}

/* Prevent hover animation on inactive ones */
.glossary-letters button.opacity-40:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

/* === Optional: “All” button (first button) slightly wider === */
.glossary-letters button[data-letter=""] {
    aspect-ratio: auto;
    padding: 0 0.75rem;
}

/* Add spacing between letter groups */
.view-content > div.rounded-2xl:not(:first-of-type) {
    margin-top: 2rem; /* Tailwind mt-8 equivalent */
}

/* === Responsive adjustment for mobile === */
@media (max-width: 768px) {
    .glossary-letters {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}



.view-content-glossary .bef-links li,
.view-glossary .bef-links li {
    list-style: none;
}


/* --- Active (selected) badge --- */
.view-content-glossary .bef-links a.bef-link--selected,
.view-glossary .bef-links a.bef-link--selected {
    background-color: white;
    color: #111827;
    border-color: white;
}
/* === Reset exposed form container styling ONLY for glossary === */
.view-content-glossary .views-exposed-form.bef-exposed-form .form--inline,
.view-glossary .views-exposed-form.bef-exposed-form .form--inline {
    margin-top: 0 !important;
    display: block !important;
    flex-wrap: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
    gap: 0 !important;
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}


