.blog-main {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.blog-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
}

.blog-date {
  margin-bottom: 0.5rem;
  color: var(--brand-text-muted);
  font-size: 0.9rem;
}

.blog-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  line-height: 1.3;
}

.blog-card h2 a,
.blog-read-more,
.blog-back-link {
  color: var(--brand-primary-dark);
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-read-more:hover,
.blog-back-link:hover {
  text-decoration: underline;
}

.blog-read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

.blog-empty {
  padding: 2rem;
  text-align: center;
  color: var(--brand-text-muted);
}

.blog-article {
  max-width: 820px;
  padding-top: 130px;
  padding-bottom: 5rem;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header .blog-back-link {
  display: inline-block;
  margin-bottom: 2rem;
}

.article-header h1 {
  margin: 0 0 1rem;
  color: var(--brand-dark);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.article-description {
  color: var(--brand-text-muted);
  font-size: 1.2rem;
}

.article-content {
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-content h2,
.article-content h3 {
  margin: 2rem 0 0.75rem;
  color: var(--brand-dark);
  line-height: 1.3;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre {
  margin: 0 0 1.25rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
}

.article-content table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-content th,
.article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--brand-border);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: #f3f6fa;
  color: var(--brand-dark);
  font-weight: 700;
}

.article-content tbody tr:nth-child(even) {
  background: #f8fafc;
}

.article-content td code {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.article-content a {
  color: var(--brand-primary-dark);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-content blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--brand-primary);
  color: var(--brand-text-muted);
}

.article-content pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .site-logo span {
    font-size: 20px;
  }

  .site-nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.85rem;
  }

  .blog-article {
    padding-top: 115px;
  }
}
