/* Blog-specific styling so we don't disturb the existing landing page layout */
body {
  display: block;
  gap: 0;
}

/* The landing page sets very large type via :root variables.
   Override them for blog readability (esp. mobile). */
:root {
  --h1: 44px;
  --h2: 34px;
  --h3: 26px;
  --normal-font: 18px;
  --hero-subheading: 20px;
}

.blog-list-section .blog-post-card {
  font-size: var(--normal-font);
  line-height: 1.7;
}

.blog-list-section .blog-post-card p {
  line-height: 1.8;
}

.blog-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.blog-hero .subheading {
  margin-top: 1rem;
}

.blog-list-section {
  padding: 2rem 0 4rem;
}

.blog-posts {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-post-card {
  border: 1px solid rgba(40, 40, 40, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  background: rgba(245, 197, 24, 0.08);
}

.blog-post-card h3 {
  margin-bottom: 0.75rem;
}

.blog-post-meta {
  color: rgba(40, 40, 40, 0.7);
  font-size: 14px;
  margin-bottom: 1rem;
}

.blog-post-card p {
  margin-bottom: 1rem;
}

.blog-post-card a.button-link {
  margin-top: 0.5rem;
}

.blog-post-card img {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  border-radius: 16px;
  margin: 1.25rem auto;
}

/* Reduce visual dominance of images in long-form posts */
.blog-post-card article > img {
  margin: 1rem auto;
}

.blog-post-card ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.blog-post-card li {
  margin: 0.35rem 0;
}

.blog-post-card article h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Comparison tables (wide layouts scroll on small screens) */
.blog-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 16px;
  border: 1px solid rgba(40, 40, 40, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

.blog-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92em;
  line-height: 1.45;
}

.blog-table-wrap th,
.blog-table-wrap td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(40, 40, 40, 0.1);
  text-align: left;
  vertical-align: top;
}

.blog-table-wrap th {
  background: rgba(245, 197, 24, 0.22);
  font-weight: 600;
}

.blog-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.blog-table-wrap caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0.75rem 0.85rem 0.35rem;
  font-family: "Playfair Display", serif;
}

/* CTAs */
.blog-cta {
  border: 1px solid rgba(40, 40, 40, 0.15);
  border-radius: 20px;
  background: white;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.blog-cta--highlight {
  background: rgba(245, 197, 24, 0.12);
}

.blog-cta-title {
  font-family: "Playfair Display";
  font-size: 24px;
  margin-bottom: 0.5rem;
}

.blog-cta p {
  margin-bottom: 0.75rem;
}

.blog-cta-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
}

.blog-cta-badges img {
  margin: 0;
  border-radius: 0;
  width: auto;
  max-width: none;
}

.blog-cta--inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.blog-cta--inline .blog-cta-badges {
  margin-top: 0;
}

@media screen and (max-width: 600px) {
  :root {
    --h1: 34px;
    --h2: 26px;
    --h3: 20px;
    --normal-font: 16px;
    --hero-subheading: 18px;
  }

  .blog-hero {
    padding: 2.75rem 0 1.5rem;
  }

  .blog-post-card {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .blog-post-card img {
    border-radius: 14px;
  }

  .blog-cta--inline {
    flex-direction: column;
    align-items: flex-start;
  }
}

