/*
  PUBLIC CLI DOCUMENTATION (#5111): /cli and /cli/<object_type>, on layouts/landing. Page-scoped
  arrangement only: the page header, copy snippet, table, disclosure and source line are the cataloged
  components. Tokens only.
*/

.p-cli__h2 {
  margin-top: var(--space-6);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  scroll-margin-top: calc(var(--topbar-height) + var(--space-4));
}

.p-cli__h3 {
  font-size: var(--text-lg);
  scroll-margin-top: calc(var(--topbar-height) + var(--space-4));
}

.p-cli__text {
  line-height: var(--leading-normal);
}

.p-cli__text code,
.p-cli__list code {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.p-cli__list {
  padding-left: var(--space-6);
  line-height: var(--leading-normal);
}

.p-cli__alt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* A long command wraps inside its block rather than widening the page. */
.p-cli .c-copy__code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* The hero's install panel: the chooser sits in the /agents-style card, its heading flush to the top. */
.p-cli__install .p-cli__h2 {
  margin-top: 0;
}

.p-cli__install .c-platform-picker__panels,
.p-cli__install .c-platform-picker {
  min-width: 0;
}

/* The two viewer states of the hero action are inline, so the buttons sit in one row. */
.p-cli__cta {
  display: inline-flex;
}

.p-cli__cta[hidden] {
  display: none;
}

/* Dataset commands link to their section: the code keeps its look as a link. */
.p-cli .c-table a code {
  color: inherit;
}

/* The tiles and the terminal sit apart from the prose around them. */
.p-cli .c-terminal,
.p-cli .l-grid {
  margin-block: var(--space-4);
}

.p-cli__h2 + .p-cli__text,
.p-cli__h2 + .c-copy {
  margin-top: var(--space-3);
}
