/* Typography for rendered Markdown manuals (see ManualsController).
   Plain CSS — Propshaft serves it; layouts include every app/assets CSS via
   stylesheet_link_tag :app. Scoped under .manual-content so it never leaks. */

.manual-content {
  color: #334155; /* slate-700 */
  font-size: 0.875rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.manual-content h1,
.manual-content h2,
.manual-content h3,
.manual-content h4,
.manual-content h5,
.manual-content h6 {
  color: #0f172a; /* slate-900 */
  font-weight: 600;
  line-height: 1.3;
  margin: 1.25em 0 0.5em;
}

.manual-content h1 { font-size: 1.25rem; margin-top: 0; }
.manual-content h2 { font-size: 1.125rem; }
.manual-content h3 { font-size: 1rem; }
.manual-content h4,
.manual-content h5,
.manual-content h6 { font-size: 0.9375rem; }

.manual-content p { margin: 0.625em 0; }

.manual-content ul,
.manual-content ol {
  margin: 0.625em 0;
  padding-left: 1.5em;
}

.manual-content ul { list-style: disc; }
.manual-content ol { list-style: decimal; }
.manual-content li { margin: 0.25em 0; }
.manual-content li > ul,
.manual-content li > ol { margin: 0.25em 0; }

.manual-content a {
  color: #4f46e5; /* indigo-600 */
  text-decoration: underline;
  text-underline-offset: 2px;
}
.manual-content a:hover { color: #4338ca; /* indigo-700 */ }

.manual-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.875em 0;
  font-size: 0.8125rem;
}

.manual-content th,
.manual-content td {
  border: 1px solid #e2e8f0; /* slate-200 */
  padding: 0.375rem 0.625rem;
  text-align: left;
  vertical-align: top;
}

.manual-content th {
  background: #f8fafc; /* slate-50 */
  color: #64748b; /* slate-500 */
  font-weight: 600;
  text-transform: none;
}

.manual-content tbody tr:nth-child(even) { background: #f8fafc; }

.manual-content code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.8125em;
  background: #f1f5f9; /* slate-100 */
  color: #475569; /* slate-600 */
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
}

.manual-content pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0.875em 0;
}

.manual-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.manual-content blockquote {
  border-left: 3px solid #c7d2fe; /* indigo-200 */
  background: #eef2ff; /* indigo-50 */
  color: #4338ca; /* indigo-700 */
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.5rem 0.875rem;
  margin: 0.875em 0;
}
.manual-content blockquote p { margin: 0.25em 0; }

.manual-content hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 1.25em 0;
}

.manual-content img {
  max-width: 100%;
  border-radius: 0.5rem;
}

.manual-content kbd {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.75rem;
  border: 1px solid #cbd5e1; /* slate-300 */
  border-bottom-width: 2px;
  border-radius: 0.25rem;
  padding: 0 0.375rem;
  background: #f8fafc;
}
