/* Furrow: the integrations page. It is built from the landing page's pieces (landing.css) and
   the centred first screen of pages.css. What is its own is here: three lists standing in the
   ground (what Furrow asks, what it runs on, where its answers go), and lines of code that
   work as they are. */

/* The first screen has no sky: the lists stand in the soil the site digs into elsewhere. */
.plugs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  padding: clamp(40px, 4.5vw, 64px) clamp(20px, 3vw, 44px) 0;
}

.sky-hero .caption {
  margin-inline: auto;
  text-align: center;
}

/* One connection to a line: its mark where it has one, its name, and what it does. */
.plug-rows {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 18px 22px 28px;
  list-style: none;
}

.plug-rows li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  font-size: 15.5px;
  line-height: 1.35;
}

.plug-rows--plain li {
  grid-template-columns: minmax(0, 1fr) auto;
}

.plug-rows svg {
  --furrow-accent: var(--ember);
  width: 18px;
  height: 18px;
  color: var(--body);
}

.plug-rows b {
  font-weight: 500;
}

.plug-rows span {
  color: var(--soft);
  font-size: 13.5px;
  text-align: right;
}

.plug-rows .plug-now {
  color: var(--ember);
}

/* Lines that run as they are. A long address breaks rather than pushing the page sideways. */
.snippets .tile {
  grid-column: span 4;
}

.snippet {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--well);
  box-shadow: var(--sunk);
  color: var(--fg);
  font: 13px/1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.snippet i {
  color: var(--ember);
  font-style: normal;
}

.snippet b {
  color: var(--iris);
  font-weight: 400;
}

/* Standing in a tile's well, the definition is part of the piece and needs no well of its own. */
.snippet--tool {
  margin: 0;
  padding: 18px 22px 26px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.plugs-close {
  padding-top: 0;
  text-align: center;
}

.plugs-close h2 {
  margin-inline: auto;
}

.plugs-close .actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .plugs {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Stacked, only the last list stands on the floor. */
  .plugs .ui:not(:last-child) {
    border-radius: 16px;
  }

  .snippets .tile {
    grid-column: 1 / -1;
  }
}
