.hb-authors-grid {
  padding: 64px 0 96px;
}
.hb-authors-grid__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hb-authors-grid__alphabet {
  display: flex; flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--hb-paper-2);
  border-radius: 999px;
}
.hb-authors-grid__letter {
  min-width: 28px;
  padding: 6px 10px;
  background: transparent;
  border: 0;
  font-family: var(--hb-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--hb-ink-700);
  cursor: pointer;
  border-radius: 999px;
  transition: all .15s;
}
.hb-authors-grid__letter:hover { background: rgba(0,0,0,.06); }
.hb-authors-grid__letter.is-active { background: var(--hb-ink-900); color: #fff; }
.hb-authors-grid__letter.is-disabled,
.hb-authors-grid__letter:disabled {
  opacity: .25; cursor: not-allowed;
}
.hb-authors-grid__letter.is-disabled:hover { background: transparent; }

.hb-authors-grid__search {
  position: relative;
}
.hb-authors-grid__search input {
  width: 280px; max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--hb-line);
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.hb-authors-grid__search input:focus {
  border-color: var(--hb-blue-700);
  box-shadow: 0 0 0 3px rgba(0,51,161,.1);
}

.hb-authors-grid__grid {
  display: grid;
  gap: 40px 28px;
}
.hb-authors-grid__grid--3 { grid-template-columns: repeat(3, 1fr); }
.hb-authors-grid__grid--4 { grid-template-columns: repeat(4, 1fr); }
.hb-authors-grid__grid--5 { grid-template-columns: repeat(5, 1fr); }

.hb-authors-grid__empty {
  text-align: center;
  padding: 64px 0;
  color: var(--hb-ink-500);
}

@media (max-width: 1024px) {
  .hb-authors-grid__grid--5 { grid-template-columns: repeat(3, 1fr); }
  .hb-authors-grid__grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hb-authors-grid__grid--3,
  .hb-authors-grid__grid--4,
  .hb-authors-grid__grid--5 { grid-template-columns: repeat(2, 1fr); }
}
