/* The template explorer (/explore, explore.ts), and the starter-design cards it shares with the
   paddle pages. Colours come from the theme tokens, so night mode works. */
.explore-head { margin-bottom: 1rem; }

.explore-controls {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.explore-search input { width: 100%; }
.explore-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.explore-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.explore-chip {
  appearance: none;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.explore-chip:hover { border-color: var(--pink); }
.explore-chip[aria-pressed="true"] {
  color: var(--on-button);
  background: var(--button);
  border-color: var(--button);
}
.explore-select {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.explore-select select {
  padding: 0.3rem 0.5rem;
  font: inherit;
  color: var(--plum);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.explore-count { min-height: 1.4em; margin: 0.25rem 0 0.5rem; font-weight: 600; }

.explore-row { margin-top: 2rem; }
.explore-row-head {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}
.explore-row h2 { font-size: 1.35rem; }

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}
.explore-card a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 0.6rem;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 1rem;
}
.explore-card a:hover,
.explore-card a:focus-visible { border-color: rgb(255 126 182 / 0.6); }
.explore-card canvas {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1; /* until it's drawn, so the grid doesn't jump */
}
.explore-name { font-weight: 700; text-align: center; }
.explore-about {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.explore-card a:hover .explore-about,
.explore-card a:focus-visible .explore-about { -webkit-line-clamp: unset; }
.explore-more { margin: 1.5rem 0; text-align: center; }
