.ps-brands {
  font-family: Raleway, sans-serif;
  color: #666666;
}

.page-template-brands-directory .entry-header,
.page-template-brands-directory .entry-hero {
  display: none;
}

.ps-brands-title {
  margin: 0 0 28px;
  font-family: Raleway, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  color: #1e1e1e;
  text-align: center;
}

.ps-brands-names {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-brands-name {
  font-family: Raleway, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #666666;
  text-decoration: none;
}

a.ps-brands-name-link {
  color: #1e1e1e;
  text-decoration: none;
}

a.ps-brands-name-link:hover,
a.ps-brands-name-link:focus {
  color: #1e1e1e;
  text-decoration: underline;
}

.ps-brands-index {
  position: sticky;
  top: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(27, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0 0 32px;
  padding: 12px 0;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.ps-brands-index-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-family: Raleway, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #666666;
  text-decoration: none;
}

a.ps-brands-index-letter:hover,
a.ps-brands-index-letter:focus {
  color: var(--global-palette1, #1e1e1e);
}

.ps-brands-index-letter.is-empty {
  color: #bbbbbb;
}

.ps-brands-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  margin: 0 0 36px;
  scroll-margin-top: 7.5rem;
}

.ps-brands-letter {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: #1e1e1e;
}

.ps-brands-names {
  columns: 3;
  column-gap: 32px;
}

.ps-brands-names li {
  break-inside: avoid;
  margin: 0 0 10px;
}

@media (max-width: 1024px) {
  .ps-brands-names {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .ps-brands-title {
    font-size: 24px;
  }

  .ps-brands-index {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    row-gap: 8px;
  }

  .ps-brands-group {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .ps-brands-names {
    columns: 1;
  }
}
