/* Website content pages: help centre, blog, What's new, success stories (apps/content).
   Loaded only by templates/content/*; builds on the tokens and marketing styles in wati.css. Logical properties
   only, so RTL (Arabic) and LTR (English) both work. */

.content-wrap { max-width: 820px; }
.content-h2 { font-size: 1.15rem; margin-bottom: var(--s4); }
.content-foot { margin-top: var(--s6); }
.content-body { max-width: none; }
.content-body p { line-height: 1.85; }
.content-body ul { margin-block: var(--s3); }
.content-body li + li { margin-top: var(--s1); }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Help centre */
.help-search { display: flex; gap: var(--s2); max-width: 560px; margin-top: var(--s5); }
.help-search .input { flex: 1 1 auto; min-width: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s4); }
.topic-grid .card + .card { margin-top: 0; }
.topic-card h2 { font-size: 1.05rem; margin: 0 0 var(--s3); }
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.article-list a { font-weight: 500; text-decoration: none; }
.article-list a:hover { text-decoration: underline; }
.related { margin-top: var(--s6); }
.related h2 { font-size: 1rem; margin: 0 0 var(--s3); }

/* Blog & stories */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s5); }
.post-grid .card + .card { margin-top: 0; }
.post-card { display: flex; flex-direction: column; gap: var(--s2); }
.post-card h2 { font-size: 1.15rem; margin: 0; line-height: 1.5; }
.post-card h2 a { text-decoration: none; color: var(--text); }
.post-card p { margin: 0; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--surface-2); }
.post-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: var(--s5); }
.story-who { display: flex; align-items: center; gap: var(--s3); }
.story-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.story-quote { margin: 0; padding-inline-start: var(--s4); border-inline-start: 3px solid var(--ready); color: var(--text-2); }
.empty-state { text-align: center; max-width: 640px; margin-inline: auto; padding: var(--s7) var(--s5); }
.empty-state h2 { margin-top: 0; }

/* What's new */
.changelog { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s6); }
.change { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid var(--border); }
.change h2 { font-size: 1.1rem; margin: 0 0 var(--s2); }
.change-date { color: var(--muted); font-size: .9rem; padding-top: 2px; }

@media (max-width: 640px) {
  .help-search { flex-direction: column; }
  .change { grid-template-columns: 1fr; gap: var(--s2); }
}
