/* ---------------------------------------------------------------------------
 * content.css — long-form article styling for /blog/ and /use-cases/.
 *
 * Loaded AFTER landing.css and additive to it: no landing.css rule is
 * overridden. Every value comes from tokens.css — DESIGN.md v2 is the source of
 * truth, and the two content widths (--reading for prose, --canvas for grids)
 * are the only legal measures.
 * ------------------------------------------------------------------------- */

/* ── shell ───────────────────────────────────────────────────────────────── */

.doc { padding-block: var(--s-48) var(--s-32); }
.doc-inner { display: block; }

.crumbs {
  display: flex; align-items: center; gap: var(--s-8);
  font-size: 13px; color: var(--text-muted);
  max-width: var(--reading); margin-inline: auto; margin-bottom: var(--s-24);
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.doc-head {
  max-width: var(--reading); margin-inline: auto; margin-bottom: var(--s-32);
}
.doc-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 600;
  color: var(--text); margin-block: var(--s-8) var(--s-16);
  text-wrap: balance;
}
.doc-head .lede { margin: 0; }

.doc-hero {
  max-width: var(--canvas); margin: 0 auto var(--s-48);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--e1);
}
.doc-hero img { display: block; width: 100%; height: auto; }

/* ── prose ───────────────────────────────────────────────────────────────── */

.prose {
  max-width: var(--reading); margin-inline: auto;
  color: var(--text-secondary); font-size: 17px; line-height: 1.68;
}

.prose > * + * { margin-top: var(--s-24); }

.prose h2 {
  font-size: 27px; line-height: 1.22; letter-spacing: -0.015em; font-weight: 600;
  color: var(--text); margin-top: var(--s-48); text-wrap: balance;
  padding-top: var(--s-24); border-top: 1px solid var(--line);
}
.prose h3 {
  font-size: 20px; line-height: 1.3; font-weight: 600;
  color: var(--text); margin-top: var(--s-32); text-wrap: balance;
}
.prose h4 {
  font-size: 16px; font-weight: 600; color: var(--text); margin-top: var(--s-24);
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.prose p { margin-block: 0; }
.prose strong { color: var(--text); font-weight: 600; }

.prose a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-deep); }

.prose ul, .prose ol { padding-left: var(--s-24); }
.prose li + li { margin-top: var(--s-8); }
.prose li::marker { color: var(--text-muted); }

.prose blockquote {
  margin-inline: 0; padding: var(--s-16) var(--s-24);
  border-left: 2px solid var(--accent);
  background: var(--wall); border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text); font-size: 17px;
}
.prose blockquote p { margin: 0; }

.prose code {
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.88em;
  background: var(--surface-strong); color: var(--text);
  padding: 2px var(--s-4); border-radius: var(--r-sm);
}

.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--s-32); }

.prose img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--r-md);
}

/* ── tables ──────────────────────────────────────────────────────────────── */

/* Comparison tables run wider than the reading measure, so they break out to
 * the canvas width and scroll horizontally below it rather than squeezing. */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--e1);
}
.prose .table-wrap { margin-top: var(--s-32); }

.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td {
  text-align: left; padding: var(--s-16); border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-wrap thead th {
  background: var(--wall); color: var(--text);
  font-weight: 600; font-size: 13px; letter-spacing: 0.01em;
  white-space: nowrap;
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--text); font-weight: 500; }

/* ── in-page CTA ─────────────────────────────────────────────────────────── */

.doc-cta {
  max-width: var(--reading); margin: var(--s-64) auto 0;
  padding: var(--s-32); background: var(--wall);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.doc-cta .lede { margin-block: 0 var(--s-24); color: var(--text); }
.doc-cta .btn-row { margin: 0; }

/* ── hub cards ───────────────────────────────────────────────────────────── */

.uc-body h3 a { color: inherit; text-decoration: none; }
.uc-body h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .doc { padding-block: var(--s-32) var(--s-24); }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 23px; margin-top: var(--s-32); }
  .doc-cta { padding: var(--s-24); }
}
