/* The cards of what a space holds on the landing page (docs/site.md), as snekot.co's own: three across, the first
   one tall, each a small picture drawn in the page's own pieces over a name and two lines. The pictures are where
   the page's colour is. */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.125rem;
  margin-top: var(--after-head);
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 14px;
  background: var(--tile);
  overflow: hidden;
}
.card.tall {
  grid-row: span 2;
}
.mock {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 10.5rem;
  padding: 1.5rem 1.5rem 0;
}
.card-words {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 1.4375rem;
}
.card-words p {
  font-size: 1.0625rem;
  line-height: 1.625rem;
  min-height: 3.25rem;
}
.mock :is(ul, li, p) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mock :is(i, em) {
  font-style: normal;
}
.mock [data-face] {
  display: block;
  flex: none;
  width: 2.375rem;
  height: 2.375rem;
}
.mock strong {
  font-weight: 600;
  color: var(--ink);
}

/* The bots are a list of rows running off the card's right edge. */
.mock.feed {
  place-items: stretch;
  padding: 1.5625rem 0 0 1.5625rem;
}
.m-bots {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px 0 0 20px;
  background: var(--page);
  box-shadow: 0 0 0 1px var(--rule);
  overflow: hidden;
}
.m-bots li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
.m-bots li + li {
  border-top: 1px solid var(--rule);
}
.m-bots span {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.25rem;
}
.m-bots i {
  color: var(--mute);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}
.asks::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -8%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: #ffb800;
  box-shadow: 0 0 0 2px var(--page);
}

/* Channels and people as bright pills, each with how much is unread. */
.m-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(100%, 13.5rem);
}
.m-pills span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding-inline: 1rem 0.375rem;
  border-radius: 999px;
  background: var(--tone-fill);
  font-size: 0.9375rem;
  line-height: 1.25rem;
  color: #fff;
}
.m-pills b {
  font-weight: 600;
}
.m-pills [data-tone="honey"] {
  color: #33270a;
}
.m-pills span:nth-child(2) {
  translate: 1.25rem 0;
}
.m-pills span:nth-child(3) {
  translate: 0.375rem 0;
}
.m-pills i {
  min-width: 2.25rem;
  padding: 4px 0.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: #1c1a17;
}
.m-doc {
  align-self: end;
  display: grid;
  gap: 0.5rem;
  width: 86%;
  padding: 1.125rem 1.125rem 0;
  border-radius: 14px 14px 0 0;
  background: var(--page);
  font-size: 0.9375rem;
}
.m-doc i {
  display: block;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--softer);
}
.m-doc i.short {
  width: 58%;
}
/* Someone else is writing here: their mark on the line, in the part's colour. */
.m-doc em {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 0.5rem;
}
.m-doc em::before {
  content: "";
  width: 40%;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--softer);
}
.m-doc em::after {
  content: "";
  order: 1;
  width: 2px;
  height: 1rem;
  border-radius: 2px;
  background: var(--tone-fill);
}
.m-doc em [data-face] {
  order: 2;
  width: 1.25rem;
  height: 1.25rem;
}
/* A change as its files, each with a bar for how much of it is new or gone. */
.m-diff {
  display: grid;
  gap: 0.5rem;
  width: min(100%, 16.5rem);
}
.m-diff p {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  font-weight: 500;
  color: var(--mute);
}
.m-diff span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-diff i {
  width: var(--w);
  height: 1rem;
  border-radius: 999px;
  background: #12c95a;
}
.m-diff .less i {
  background: #ff3b30;
}
.m-diff b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}

.m-tasks {
  display: grid;
  gap: 0.375rem;
  width: 100%;
  font-size: 0.9375rem;
  line-height: 1.25rem;
}
.m-tasks li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: var(--page);
  color: var(--ink);
}
.m-tasks i {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid var(--softer);
}
.m-tasks .done {
  color: var(--mute);
}
.m-tasks .done i {
  border: 0;
  background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path d="M5 9.4l2.6 2.6L13 6.4" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center / contain,
    var(--tone-fill);
}

@media (max-width: 60rem) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (max-width: 36rem) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .card.tall {
    grid-row: auto;
  }
}

/* On a phone the bots' card says again what the window's list of bots just showed, one under the other, so it goes. */
@media (max-width: 35.9375rem) {
  .wide-only {
    display: none;
  }
}
