/*
 * The CLI page (/cli/). Loaded after site.css and built from its tokens and
 * components; like site.css it writes no colour, font or raw pixel length.
 */

.cli__lede {
  max-width: 60ch;
  color: var(--mute);
  font-size: 1.125rem;
}

.cli__stats {
  justify-content: flex-start;
}

.cli__note {
  margin: calc(var(--px) * 2) 0 0;
  color: var(--mute);
  font-size: 0.875rem;
}

.cli__section {
  padding-top: calc(var(--px) * 12);
}

.cli__section h2 {
  margin: 0 0 calc(var(--px) * 3);
}

.cli__section h3 {
  margin: 0 0 calc(var(--px) * 2);
  font-size: 1.25rem;
}

.cli__section p {
  max-width: 70ch;
}

/* A flag or command name never splits at its own hyphens; only a whole
   command line (.command) may wrap, between its words. */
.cli code {
  white-space: nowrap;
}

.cli code.command {
  white-space: normal;
}

/* A terminal window: dark in both themes, like the title screen. */
.terminal {
  margin: calc(var(--px) * 4) 0;
  padding: calc(var(--px) * 4);
  overflow-x: auto;
  background: var(--screen);
  color: var(--on-screen);
  box-shadow: inset 0 0 0 calc(var(--px) / 2) var(--line);
  font-family: var(--f-ui);
  font-size: 1.0625rem;
}

.terminal code {
  white-space: pre;
}

.routines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: calc(var(--px) * 6);
  /* Cards in one row share one height (owner rule, 2026-10-13). */
  align-items: stretch;
  margin: calc(var(--px) * 4) 0;
}

.routines table {
  width: 100%;
  border-collapse: collapse;
}

.routines th,
.routines td {
  padding: calc(var(--px) * 3) calc(var(--px) * 3) calc(var(--px) * 3) 0;
  border-bottom: calc(var(--px) / 2) solid var(--line);
  text-align: left;
  vertical-align: top;
}

.routines th {
  font-family: var(--f-ui);
  font-weight: 400;
}

.routines code.command {
  display: inline-block;
  margin-bottom: var(--px);
}

.cli__bill p {
  margin: 0;
}
