/* The document pages' rules: the reading column, the prose body, the note
   line, and the install copy button. Everything else is site.css's. */

.wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.doc-head {
  padding: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.doc-head h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.032em;
}

.doc-head p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 42rem;
}

.prose { padding: 0.5rem 0 3rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 2.75rem;
}
.prose h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; margin-top: 2rem; }
.prose h4 { font-size: 1rem; font-weight: 700; margin-top: 1.5rem; }
.prose p { color: #4a4b54; line-height: 1.72; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.35rem; display: flex; flex-direction: column; gap: 0.45rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: #4a4b54; line-height: 1.7; }
.prose li::marker { color: var(--primary); }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 700;
  background: var(--band);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs);
  padding: 1px 5px;
}
.prose pre code { background: none; border: 0; padding: 0; font-weight: 400; font-size: inherit; }
.prose blockquote {
  border-left: 3px solid var(--primary-wash);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}
.prose img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose hr { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }
.prose table { margin: 1.25rem 0; }
.prose thead th { text-align: left; }
.prose tbody td { text-align: left; }

.note { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.note b, .note strong { color: var(--ink); font-weight: 700; }
.note code {
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 700;
  background: var(--band);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs);
  padding: 1px 4px;
}

.notes-flush { margin-top: 0; padding-top: 0; border-top: 0; }
.note-after-grid { margin-top: 2rem; }

.copy-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.card-title { font-size: 0.8125rem; font-weight: 700; color: var(--ink); }

.copy {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  height: 30px;
  padding: 0 0.75rem;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.copy:hover { border-color: rgba(213, 88, 21, 0.55); color: var(--primary-hi); }
