/* Magnetti Lab — Blog module styles */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 760px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
  overflow: hidden;
  padding: 0;
}
.blog-thumb-link { display: block; background: var(--surface-2); }
.blog-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.blog-card-body { padding: 26px; }
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.blog-meta-lg {
  margin-top: 20px;
  font-size: 14px;
}
.blog-card-title {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
.blog-card-title a:hover { color: var(--primary); }
.read-more {
  display: inline-flex;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 48px;
}
.page-link {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  background: rgba(255,255,255,0.03);
  padding: 0 14px;
}
.page-link:hover,
.page-link.active {
  color: var(--primary-ink);
  background: var(--primary);
  border-color: var(--primary);
}
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 980px) {
  .blog-post-layout {
    grid-template-columns: minmax(0, 760px) 300px;
    align-items: start;
  }
}
.blog-post-content {
  min-width: 0;
}
.blog-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 34px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.article-body {
  color: var(--fg);
  font-size: 1.05rem;
  line-height: 1.82;
}
.article-body > * + * { margin-top: 1.15em; }
.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 2.1em;
  line-height: 1.22;
}
.article-body h2 { font-size: clamp(1.55rem, 2.4vw, 2.05rem); }
.article-body h3 { font-size: 1.28rem; }
.article-body p,
.article-body li { color: var(--muted); }
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body ul,
.article-body ol { padding-left: 1.4rem; }
.article-body blockquote {
  margin: 2rem 0;
  padding: 22px 26px;
  border-left: 3px solid var(--primary);
  background: rgba(255,255,255,0.035);
  border-radius: var(--radius);
  color: var(--fg);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-body th,
.article-body td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}
.article-body pre {
  overflow-x: auto;
  padding: 18px;
  background: #0b0f18;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.blog-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.blog-post-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}
.back-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.mt-inline { margin-top: 18px; }
.error-card h2 { margin-bottom: 12px; }
.error-pre {
  white-space: pre-wrap;
  overflow-x: auto;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0b0f18;
  color: #ffb4b4;
  margin: 18px 0;
}
code {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.12em 0.35em;
}
