/* Marketplace layout only.
 *
 * 273 lines before this; the difference is everything that used to style a
 * button, a badge, an input or a card, all of which are Web Awesome's job
 * now. What is left is how the page is arranged, which is genuinely ours.
 */

.search-box {
  display: block;
  max-width: 28rem;
  margin: 0 0 1.5rem;
}

.marketplace { margin-bottom: 2.5rem; }
.marketplace-title { margin: 0 0 0.2rem; font-size: 1.15rem; }
.marketplace-desc {
  margin: 0 0 1rem;
  color: var(--wa-color-text-quiet);
  font-size: 0.9rem;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  align-items: start;
}

.plugin-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.plugin-name { margin: 0; font-size: 1rem; }
.plugin-badges { display: flex; gap: 0.35rem; flex-shrink: 0; }

.plugin-desc {
  margin: 0 0 0.9rem;
  color: var(--wa-color-text-quiet);
  font-size: 0.88rem;
}

.btn-plugin { width: 100%; }

.skill-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--wa-color-surface-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
}
.skill-text { min-width: 0; }
.skill-name { font-size: 0.9rem; font-weight: 600; }
.skill-desc {
  margin: 0.1rem 0 0;
  color: var(--wa-color-text-quiet);
  font-size: 0.8rem;
  /* Descriptions come from third-party repos and can be paragraphs long. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty { display: block; margin: 2rem auto; max-width: 36rem; }

@media (max-width: 480px) {
  .skill-row { grid-template-columns: 1fr auto; }
  .skill-row wa-badge { grid-column: 1; justify-self: start; }
}
