/* The agent setup pages. Loaded only on /docs/agents/.
   The sheet, the type and the brand tokens are the site's. This file
   places the breadcrumb and the config blocks the way the guides do. */

.crumbs {
  margin: 0 0 1rem;
  color: var(--mute);
  font-size: 0.95rem;
}

.crumbs a {
  color: inherit;
}

.reading,
.checked {
  margin: 0;
  color: var(--mute);
}

.page-head .lede {
  padding-bottom: 0.75rem;
}

.setup > section {
  padding: 1.35rem 0 2.4rem;
  border-top: 1px solid var(--line);
}

.setup > section > h2 {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.setup > section > h3 {
  margin: 1.35rem 0 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.setup p,
.setup li {
  margin: 0.75rem 0;
}

.setup p code,
.setup li code {
  white-space: nowrap;
}

.setup pre {
  margin: 0.75rem 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-radius: 0.625rem;
  background: var(--pale);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.45;
}

.setup pre code {
  font-family: inherit;
  font-size: inherit;
  white-space: pre-wrap;
}

.setup .copy {
  margin: 0 0 0.35rem;
}

@media (min-width: 62.5rem) {
  .page-head .crumbs {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
  }

  .page-head .reading {
    grid-column: 2 / span 2;
    grid-row: 4;
    margin: -1rem 0 1.5rem;
  }

  .setup {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .setup > section {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }

  .setup > section > h2 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .setup > section > :not(h2) {
    grid-column: 2 / span 2;
    min-width: 0;
  }
}
