/* Typography and layout for generated content pages (/blog/*, /help/*).
   Loaded AFTER styles.css so it inherits the brand tokens (--sage,
   --cream, --border, …) rather than redefining them. */

.content-header { position: sticky; }

.content-main {
  padding: 118px 24px 90px;
  background:
    radial-gradient(900px 480px at 88% 6%, rgba(95, 168, 114, 0.12), transparent 60%),
    radial-gradient(900px 520px at 6% 88%, rgba(242, 208, 107, 0.12), transparent 60%),
    var(--cream);
  min-height: 70vh;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
  font-size: 17.5px;
  line-height: 1.72;
}

.crumbs {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--sage); text-decoration: underline; }
.crumbs span { margin: 0 6px; }

.prose h1 {
  font-size: clamp(31px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.prose .lede {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.meta-line {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.prose h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 46px 0 14px;
  scroll-margin-top: 110px; /* sticky header must not cover an anchor target */
}
.prose h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
  scroll-margin-top: 110px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--sage); text-underline-offset: 2px; }
.prose strong { font-weight: 600; }
.prose code {
  background: var(--cream-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}
.prose blockquote {
  margin: 0 0 22px;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--sage);
  color: var(--text-secondary);
}

/* Tables scroll inside their own box — a wide comparison table must never
   make the whole page scroll sideways on a phone. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose th { font-weight: 600; background: var(--cream-deep); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 40px;
}
.toc-title {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.toc ul { margin: 0 0 0 18px; }
.toc li { margin-bottom: 5px; font-size: 15.5px; }

.verified-note {
  font-size: 14.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 40px;
}

.content-cta {
  margin-top: 52px;
  padding: 38px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.content-cta h2 { margin: 0 0 10px; font-size: 25px; }
.content-cta p { color: var(--text-secondary); margin-bottom: 22px; }

/* Index pages */
.content-list { list-style: none; margin: 34px 0 0; padding: 0; }
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.content-card h2 { font-size: 21px; margin: 0 0 8px; letter-spacing: -0.02em; }
.content-card h2 a { color: var(--text); text-decoration: none; }
.content-card:hover h2 a { color: var(--sage); }
.content-card p { color: var(--text-secondary); font-size: 16px; margin: 0; }

@media (max-width: 700px) {
  .content-main { padding: 96px 20px 70px; }
  .prose { font-size: 17px; }
  .prose .lede { font-size: 18.5px; }
  .content-cta { padding: 30px 22px; }
}
