/* ============================================================
   BLOG ARTICLES — long-form post layout, built on styles.css tokens
   ============================================================ */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.blog-article > * + * { margin-top: 1.15rem; }

.blog-figure { margin: 0 0 2.5rem; }
.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.blog-article h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  color: var(--text);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  margin-top: 2.75rem;
}
.blog-article h2 + p { margin-top: 0.85rem; }

.blog-article h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.35;
  margin-top: 1.9rem;
}
.blog-article h3 + p { margin-top: 0.6rem; }

.blog-article strong { color: var(--text); font-weight: 600; }

.blog-article a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(40,140,88,0.32);
  transition: color var(--transition), border-color var(--transition);
}
.blog-article a:hover { color: var(--brand-light); border-bottom-color: var(--brand-light); }

.blog-article ul,
.blog-article ol { padding-left: 1.4rem; }
.blog-article li + li { margin-top: 0.55rem; }
.blog-article ul li::marker { color: var(--brand); }
.blog-article ol li::marker { color: var(--brand); font-weight: 600; }

.blog-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.55;
}
.blog-article th,
.blog-article td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.blog-article th {
  background: var(--brand-mid);
  color: #fff;
  font-weight: 600;
}
.blog-article tbody tr:nth-child(even) td { background: var(--off-white); }
.blog-article tbody tr:last-child td { border-bottom: 0; }
.blog-article td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
/* tables with long row labels (e.g. three-column comparisons) let the first column wrap */
.blog-table-wrap.wrap-labels td:first-child { white-space: normal; min-width: 11rem; }

/* ============================================================
   BLOG LISTING — /blog/ post cards
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,26,18,0.1);
}
.blog-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.blog-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.6rem 1.75rem;
}
.blog-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.blog-card h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--text);
  margin: 0.6rem 0 0.75rem;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
}
.blog-card-more {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-article { font-size: 0.95rem; }
  .blog-article td:first-child { white-space: normal; }
}
