/* /themes: one card per theme. The preview carries that theme's own custom
   properties (ThemeCatalog), so it shows the theme while the rest of the page
   stays in the theme showing now. */
.theme-catalog h1 {
  margin: 0;
}

.theme-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-catalog__card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.theme-catalog__preview {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 6.5rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--body-background, var(--page-bg));
  color: var(--ink);
  font-family: var(--body-font);
}

.theme-catalog .theme-catalog__name {
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.05rem;
}

.theme-catalog__sample-meta {
  color: var(--ink-soft);
  font-family: var(--ui-font);
  font-size: 0.85rem;
}

.theme-catalog__sample-row {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
  font-family: var(--ui-font);
  font-size: 0.85rem;
}

.theme-catalog__sample-button,
.theme-catalog__sample-tag {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--ink);
}

.theme-catalog__sample-tag {
  border-color: var(--active-line);
  background: var(--active-bg);
  color: var(--active-ink);
}

.theme-catalog__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
}

.theme-catalog__mode {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.theme-catalog__use,
.theme-catalog__current {
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
}

.theme-catalog__current {
  display: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
