/* The guide pages. Tokens, type, cards and buttons come from styles.css and
   the page frame from home.css (both copied from apps/groups-web); this file
   only adds what a long-form guide needs. */

.guide-wrap {
  max-width: 820px;
}

.crumbs {
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.crumbs a {
  color: inherit;
}

.guide-page .hero .display {
  max-width: 22ch;
}
.guide-page .hero .lede {
  max-width: 62ch;
  margin-bottom: var(--space-4);
}

.prose h2 {
  margin: var(--space-6) 0 var(--space-3);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: var(--space-2);
}
.guide-list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.guide-list .card + .card {
  margin-top: 0;
}
.guide-list h2,
.guide-list h3 {
  font-size: 20px;
  margin: 0 0 var(--space-2);
}

/* Tables: the comparison on the hub, and any written in a guide's Markdown. */
.table-scroll {
  overflow-x: auto;
  margin-top: var(--space-5);
}
.compare,
.guide-body table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.4;
}
.compare th,
.compare td,
.guide-body th,
.guide-body td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
}
.compare thead th,
.guide-body thead th {
  border-bottom-color: var(--line-strong);
}
.guide-body table {
  display: block;
  overflow-x: auto;
}

.sources {
  margin-top: var(--space-6);
  font-family: var(--font-ui);
}
.sources h2 {
  font-size: 20px;
}
.sources li + li {
  margin-top: var(--space-2);
}

.fit .row {
  margin-top: var(--space-5);
}
.guide-body table + p {
  margin-top: var(--space-4);
}
