/* ===== Glossary Module — CSS ===== */

/* Container */
.glossary {
  max-width: 1000px;
  margin: 0 auto;
}

/* Intro copy (title is removed, but keep sub style) */
.glossary__sub {
  color: #666;
  margin: 0 0 1rem 0;
}

/* --- Controls --- */
/* Two equal columns for Search + Category, with A–Z on its own row */
.glossary__controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  margin: 1rem 0;
}

.gl__ctrl--az {
  grid-column: 1 / -1; /* force A–Z underneath, full width */
}

.gl__label {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.25rem;
  display: block;
}

.gl__input,
.gl__select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  line-height: 1.2;
}

.gl__input:focus,
.gl__select:focus,
.gl__pill:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* A–Z pills */
.gl__pillbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gl__pill {
  display: inline-block;            
  padding: 0.25rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
}

.gl__pill.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* --- Results --- */
.glossary__list {
  display: grid;
  gap: 1rem;
}

.gl__card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #fff;
}

.gl__term {
  margin: 0 0 0.25rem 0;
}

.gl__meta {
  font-size: 0.85rem;
  color: #666;
}

.gl__def {
  margin: 0.5rem 0 0;
}

/* --- Pagination --- */
.gl__pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.gl__pagination a {
  padding: 0.4rem 0.7rem;
