/* =========================
   Topic Hub (A–Z) styles
   ========================= */

/* Remove bullets + reset spacing for all lists in this feature. */
.hmag-az__item,
.hmag-topic-links__item {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: Commissioner, sans-serif;
  font-size: 20px;
}
.hmag-az-nav {
  border-top: 1px solid #707070;
  padding: 20px 0;
  margin: 20px 0;
  border-bottom: 1px solid #707070;
}
/* A–Z nav layout */
.hmag-az {
  margin: 0;
  display: flex;
  flex-direction: row;
  column-gap: 20px;
  overflow: scroll;
}

/* Disabled letter */
.hmag-az__disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Active letter (aria-current="page") */
.hmag-az__item a[aria-current="page"] {
  /* Uses currentColor, so it adapts to your theme */
  border-bottom: 1px solid #b10e0e;
  color: #b10e0e;
}

/* Hover/focus styles */
.hmag-az__item a:hover {
  text-decoration: underline;
}

.hmag-az__item a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

/* Heading spacing */
.hmag-az__active {
  margin: 1rem 0 0.75rem;
}

/* =========================
   Topic list styles
   ========================= */

/* Flat list (letter pages) */
.hmag-topic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2.5rem;
  margin-bottom: 40px;
}

/* Each letter group */
.hmag-topic-group h3 {
  margin: 0 0 0.5rem;
}

/* A simple multi-column layout for larger screens */
@media (min-width: 48rem) {
  /* ~768px */
  .hmag-topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.25rem;
  }
}

@media (min-width: 64rem) {
  /* ~1024px */
  .hmag-topic-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Make the A–Z chips more compact on very small screens */
@media (max-width: 22.5rem) {
  /* ~360px */
  .hmag-az__item a,
  .hmag-az__disabled {
    min-width: 2rem;
    padding: 0.3rem 0.5rem;
  }
}

.hmag-az-nav li {
  text-transform: uppercase;
}
