.dpt-indexpage h1 {
  text-align: center;
}

.dpt-indexpage-letters {
  margin: 0 auto;
  max-width: 768px;
}

.dpt-indexpage-letters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.dpt-indexpage-letters a {
  align-items: center;
  border: 1px solid;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.dpt-indexpage-letters a:focus,
.dpt-indexpage-letters a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.dpt-indexpage-search-form {
  align-items: center;
  display: grid;
  column-gap: 10px;
  margin: 0 auto;
  max-width: 768px;
}

.dpt-indexpage-search-form button {
  justify-self: center;
}

.dpt-indexpage-search-form input,
.dpt-indexpage-search-form select {
  margin-bottom: 10px;
}

.dpt-indexpage-search-form label {
  font-weight: bold;
}

.dpt-indexpage-reset-filter {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

@media (min-width: 576px) {
  .dpt-indexpage-search-form {
    display: grid;
    grid-template-columns: max-content 1fr;
  }

  .dpt-indexpage-search-form button {
    grid-column: 1 / span 2;
  }

  .dpt-indexpage-search-form label {
    margin-bottom: 10px;
  }
}

@media (min-width: 768px) {
  .dpt-indexpage-search-form {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    row-gap: 10px;
  }

  .dpt-indexpage-search-form.dpt-indexpage-with-displayfilter button {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .dpt-indexpage-search-form button {
    grid-column: unset;
  }

  .dpt-indexpage-search-form input,
  .dpt-indexpage-search-form label,
  .dpt-indexpage-search-form select {
    margin-bottom: 0;
  }
}
