/* ─── Glossary listing module ─── */
/* Dark green (#166963) is used ONLY on the term count — nowhere else. */
.dl-glossary {
  color: #000000;
  font-family: 'Aeonik', sans-serif;
  box-sizing: border-box;
}

.dl-glossary * {
  box-sizing: border-box;
}

.dl-glossary__inner {
  max-width: none;
  margin: 0;
}

/* ─── Hero ─── */
.dl-glossary__head {
  margin: 0 0 40px;
}

.dl-glossary__title {
  margin: 0 0 16px;
}

.dl-glossary__count {
  color: #166963;
}

.dl-glossary__intro {
  font-family: 'Aeonik', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: #000000;
  margin: 0;
}

/* ─── Controls ─── */
.dl-glossary__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
}

.dl-glossary__search {
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
}

.dl-glossary__search input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 1.5px solid #000000;
  border-radius: 25px;
  background: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  color: #000000;
  outline: none;
  transition: border-color 0.15s ease;
}

.dl-glossary__search input:focus {
  border-color: #000000;
}

.dl-glossary__search svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* ─── Category filter pills ─── */
.dl-glossary__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.dl-glossary__tag {
  appearance: none;
  border: 1.5px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: 'Aeonik', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dl-glossary__tag:hover,
.dl-glossary__tag[aria-pressed="true"] {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.dl-glossary__tag[aria-pressed="true"] {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.dl-glossary__clear {
  background: none;
  border: none;
  color: #000000;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 9px 6px;
  display: none;
}

.dl-glossary__clear.is-visible {
  display: inline;
}

/* ─── A–Z jump bar (divider matches the glossary post dividers) ─── */
.dl-glossary__az {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 0;
  margin: 0 0 20px;
  background: transparent;
  border-bottom: 1px solid #000000;
}

.dl-glossary__az a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #000000;
  transition: background 0.15s ease, color 0.15s ease;
}

.dl-glossary__az a:hover {
  background: #F7F2EF;
}

.dl-glossary__az a[aria-disabled="true"] {
  opacity: 0.3;
  pointer-events: none;
}

/* ─── Card grid (no letter headings or dividers in the list) ─── */
.dl-glossary__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.dl-card[hidden],
.dl-card__cat[hidden] {
  display: none !important;
}

.dl-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 26px 26px 22px;
  color: #000000;
  text-decoration: none;
  scroll-margin-top: 120px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #F7F2EF;
}

.dl-card__term {
  font-family: 'Gazpacho', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  color: #000000;
  margin: 0 0 10px;
}

.dl-card__desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: #000000;
  margin: 0 0 16px;
  flex: 1 1 auto;
}

.dl-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.dl-card__cats {
  display: flex;
  flex-wrap: nowrap;   /* one line only */
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

.dl-card__cat {
  flex: none;
  display: inline-block;
  white-space: nowrap;
  background: #000000;
  color: #ffffff;
  font-family: 'Aeonik', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
}

.dl-card__more {
  flex: none;
  align-self: center;
  color: #000000;
  font-size: 15px;
  line-height: 1;
  padding-left: 2px;
}

.dl-card__arrow {
  width: 26px;
  height: 26px;
  flex: none;
  color: #000000;
  transition: transform 0.15s ease;
}

.dl-glossary__az a.is-active {
  background: #000000;
  color: #ffffff;
}

.dl-card:hover .dl-card__arrow {
  transform: translateX(4px);
}

/* ─── Empty state ─── */
.dl-glossary__empty {
  display: none;
  padding: 56px 0;
  text-align: center;
  font-size: 18px;
  color: #000000;
}

.dl-glossary__empty.is-visible {
  display: block;
}

.dl-glossary__empty button {
  background: none;
  border: none;
  color: #000000;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .dl-glossary {
    padding: 40px 6vw;
  }

  .dl-glossary__list {
    grid-template-columns: 1fr;
  }
