/*
 * Developer documentation.
 *
 * Loaded alongside landing.css, which already supplies the header, the code
 * cards and the section rhythm. Only what is specific to a long technical
 * document lives here.
 */

.docs { width: 100%; padding: 8px 24px 80px; }
.docs-inner { max-width: 780px; margin: 0 auto; }

.docs h1 {
  margin: 24px 0 14px;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.028em;
}

.docs section { margin-top: 52px; }
.docs h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-size: 23px;
  letter-spacing: -.018em;
  border-bottom: 1px solid var(--border);
}
.docs h3 { margin: 30px 0 10px; font-size: 16.5px; }

.docs p { font-size: 15.5px; line-height: 1.65; color: var(--text); margin: 0 0 14px; }
.docs p.row-meta { font-size: 14px; color: var(--text-muted); }

/* Inline code in prose sits on the page background, not the terminal ground —
   a dark chip mid-sentence in light mode reads as a redaction. */
.docs code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 5px;
}
/* …except inside a code card, where it is already on the dark ground. */
.docs .code-card code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.docs .code-card { margin: 0 0 16px; }

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}
.docs-table th,
.docs-table td {
  text-align: left;
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.docs-table th {
  font-weight: 600;
  white-space: nowrap;
  padding-right: 22px;
}
.docs-table td { color: var(--text-muted); }
.docs-table thead th { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 560px) {
  .docs { padding: 8px 20px 60px; }
  .docs section { margin-top: 40px; }
}
