/* Shared layout for the "browse all X" index pages: categories, events, A-Z stores. */

/* 404.php's oversized numeral — also loads this stylesheet, and this is a
   one-off display treatment rather than a real heading style, so it lives
   here instead of a new page-specific file. */
.ap-404-code {
  font-size: 6rem;
  color: var(--ap-primary);
  margin-bottom: 0;
}

.ap-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--ap-space-lg);
}

.ap-tile {
  display: flex;
  align-items: center;
  gap: var(--ap-space-md);
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: var(--ap-space-md);
  transition: box-shadow var(--ap-transition), border-color var(--ap-transition);
}

.ap-tile:hover {
  box-shadow: var(--ap-shadow-md);
  border-color: var(--ap-primary);
}

.ap-tile__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.ap-tile__name {
  font-weight: 600;
  color: var(--ap-text);
}

.ap-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-xs);
  padding-block: var(--ap-space-md);
  position: sticky;
  top: calc(var(--ap-topbar-height) + var(--ap-topbar-gap) + var(--ap-header-height) + var(--ap-subnav-height));
  background: var(--ap-bg);
  z-index: 10;
}

.ap-az-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--ap-radius-sm);
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  font-size: var(--ap-fs-sm);
  font-weight: 600;
}

.ap-az-nav a:hover { border-color: var(--ap-primary); color: var(--ap-primary); }

.ap-az-group {
  padding-block: var(--ap-space-md);
  border-bottom: 1px solid var(--ap-border);
}

.ap-az-group__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--ap-space-xs) var(--ap-space-md);
}

.ap-az-group__list a {
  font-size: var(--ap-fs-sm);
  padding-block: var(--ap-space-xs);
}

.ap-az-group__list a:hover { color: var(--ap-primary); }
