/**
 * Public storefront: CMS page hero, prose inside .cms-content, and small embeds.
 * Previously inline in resources/views/public/page.php — keep markup classes stable.
 *
 * @see docs/PRESENTATION_LAYER.md
 * @see docs/PUBLIC_UI_PATTERNS.md
 */

/* ── Page hero (non-home CMS pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--page-hero-gradient-end) 100%);
}

.page-hero .page-hero__lead {
  color: var(--page-hero-lead);
}

/* ── CMS body copy (inner pages + builder output) ── */
.cms-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--cms-text-body);
}

.cms-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--cms-text-heading);
}

.cms-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--cms-text-heading-secondary);
}

.cms-content p {
  margin-bottom: 1.25rem;
}

.cms-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Do not override Bootstrap .btn / marketing links inside home hero & CTAs */
.cms-content a:not(.btn) {
  color: var(--cms-link);
}

.cms-content blockquote {
  border-left: 4px solid var(--brand-blue);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--cms-blockquote-bg);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--cms-text-muted);
  font-style: italic;
}

.cms-content pre {
  background: var(--cms-code-bg);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
}

.cms-content code {
  background: var(--cms-code-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.cms-content pre code {
  background: none;
  padding: 0;
}

.cms-content ul,
.cms-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.cms-content li {
  margin-bottom: 0.4rem;
}

.cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.cms-content table th,
.cms-content table td {
  border: 1px solid #dee2e6;
  padding: 0.6rem 0.9rem;
}

.cms-content table th {
  background: #f8f9fa;
  font-weight: 600;
}

/* ── Conversion Suite: trending widget (public partial) ── */
.cs-trending-card--linked {
  cursor: pointer;
}

.cs-trending-card--no-href {
  cursor: default;
}

.cs-trending-card-thumb {
  height: 140px;
  object-fit: cover;
}

.cs-trending-card-placeholder {
  height: 140px;
}
