/* The help home's pages, on top of ../site.css (fonts, tokens, header, footer). A page is one column of
   reading, and its title is in Clash Display like every landing heading (DESIGN.md). */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 4rem;
  line-height: 1.65;
}

.doc h1,
.doc h2,
.doc h3 {
  text-wrap: balance;
}

.doc h1 {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
}

.doc h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: var(--text-part);
  font-weight: 500;
  line-height: 1.3;
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.4;
}

.doc a {
  text-underline-offset: 0.2em;
}

.doc-date,
.doc-list p {
  color: var(--ink-2);
  font-size: var(--text-ui);
}

.doc-list {
  padding: 0;
  list-style: none;
}

.doc-list li {
  margin-bottom: 1.25rem;
}

.doc-list p {
  margin: 0.15rem 0 0;
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc code {
  font-family: var(--font-code);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.doc pre {
  white-space: pre-wrap;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}

.doc-table {
  overflow-x: auto;
  margin: 1rem 0;
}

/* In a table a message or command breaks only at its spaces; a wide table scrolls in its own box. */
.doc td code,
.doc th code {
  overflow-wrap: normal;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-ui);
}

.doc th,
.doc td {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
}

.doc th {
  font-weight: 500;
}

.doc-more {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
