/* goonlab — a bot for everybody else (docs/bots/spec/61-publishing-a-bot.md,
   sections 6 and 7): the catalog's section for bots (templates/bots/
   catalog.html) and a published bot's page (templates/bots/public.html).
   build.css draws the cover and the bot's page; the site's own sheets draw
   the toolbar, the count, the pages, the Report button and a bot's card,
   which is a video's card (templates/bots/_catalog_card.html; docs/bots/
   spec/86-hearts-on-bots-and-the-catalogs-facts.md). Nothing here touches
   another page. */

/* the catalog's section */
.bots-catalog-form { align-items: center; }
.bots-catalog-search { width: 16rem; max-width: 100%; min-width: 0; }
.bots-catalog-grid .empty-note { grid-column: 1 / -1; }
/* a bot's card: the lines of a video's card. Its title is shown whole (a
   video's card stops after two lines), and a long name or title wraps
   inside the card instead of running out of it; the heart stays at the foot
   of every card of a row, however long the titles beside it */
.bot-catalog-card { display: flex; flex-direction: column; }
.bot-catalog-card .video-body { flex: 1 1 auto; }
.bot-catalog-card .video-foot { margin-top: auto; }
.bot-catalog-card .video-title { display: block; -webkit-line-clamp: unset; overflow: visible; }
.bot-catalog-card .video-meta, .bot-catalog-card .video-title { overflow-wrap: anywhere; }
/* the facts' line breaks between "N streams" and the day, never inside either
   (docs/bots/spec/93-corrections-for-phones.md, section 3) */
.bot-catalog-card .bot-card-fact { white-space: nowrap; }
/* its characters (templates/bots/_catalog_card.html): two lines at most, then three dots.
   A scenario can have fifty characters. The rule stands in this sheet because every page
   that draws this card loads this sheet (the homepage's row, the catalog of videos' row,
   Favorites, what the header's search found, the catalog of scenarios); build.css holds the
   same rule for the maker's own list, and the homepage does not load build.css, so there the
   whole list of names was drawn */
.bot-catalog-card .bot-card-cast {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden;
}
/* its description (templates/bots/_catalog_card.html): two lines at most, then three
   dots; its first 300 characters are the line's title */
.bot-catalog-card .bot-card-description {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden;
}

/* a published bot's page */
.bot-public-maker { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
/* the facts and the heart under the title, in the watch page's row: the
   hero's own gap stands between the lines */
.bot-public-row { margin: 0; }
.bot-public-start > .btn { white-space: normal; max-width: 100%; }
.bot-public-report { align-self: flex-start; max-width: 100%; }

@media (max-width: 720px) {
  .bots-catalog-form { width: 100%; }
  .bots-catalog-search { width: 100%; }
}
