@import url('page.css');

/* The /playgrounds/ and /demos/ browse indexes: groups of tiles. */

/* Wider than page.css's 45em reading column so the tile grid gets room. */
body {
  width: calc(min(60em, 90%));
}

div.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
  gap: 0.75em;
  margin-top: 0.75em;
}

a.tile {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  padding: 0.75em 0.9em;
  border: 1px solid #bbb;
  border-radius: 10px;
  background: white;
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
}

a.tile:hover {
  border-color: rebeccapurple;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.15);
}

span.tile-title {
  font-weight: 600;
}

span.tile-blurb {
  font-size: 85%;
  color: #444;
}

/* Matches the /m/ browse index's badge look; pushed to the tile bottom. */
span.tile-badge {
  margin-top: auto;
  align-self: start;
  font-size: 75%;
  padding: 1px 8px;
  border-radius: 8px;
  background: #f5dfa8;
  white-space: nowrap;
}
