/* smolVM Tech Guide - blog styles (header/footer styles are in ../styles.css) */

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

.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 900;
  color: var(--text-strong);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.article-meta time {
  color: var(--mint);
}

.article-meta .category {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
  color: var(--orange-soft);
}

.article-content {
  min-width: 0;
}

.article-content .eyecatch {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  margin-bottom: 2rem;
  display: block;
}

/* ===== Share buttons ===== */
.share-buttons {
  display: flex;
  gap: 0.8rem;
  margin: 2.4rem 0 0.8rem;
  flex-wrap: wrap;
}

.share-buttons .share-label {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  align-self: center;
}

.share-buttons a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.share-buttons a.share-x:hover {
  border-color: var(--mint-dim);
  color: var(--mint);
}

.share-buttons a.share-fb:hover {
  border-color: #4267b2;
  color: #7d9de0;
}

/* ===== Blog index cards ===== */
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 4rem;
}

.blog-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.blog-card .card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card .card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mint);
  margin-bottom: 0.5rem;
  display: block;
}

.blog-card h2 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 0.7rem;
}

.blog-card h2 a {
  color: var(--text-strong);
}

.blog-card h2 a:hover {
  color: var(--mint);
}

.blog-card p {
  font-size: 0.86rem;
  color: var(--text-dim);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.blog-card .read-link {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--orange-soft);
  font-weight: 600;
}

.blog-card .read-link::after {
  content: ' ->';
}

.blog-index-title {
  max-width: 1200px;
  margin: 2.6rem auto 0;
  padding: 0 1.2rem;
}

@media (max-width: 760px) {
  .blog-list-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile news-commentary readability baseline (shared site-local rule). */
@media (max-width: 768px) {
  .blog-main, .blog-container, .two-col-layout { min-width: 0; }
  .article-detail, .blog-article, .article-body { min-width: 0; }
  .article-detail .article-body, .blog-article { padding-inline: 16px; }
  .article-content {
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }
  .article-content h2 { font-size: clamp(1.25rem, 6vw, 1.45rem); line-height: 1.4; }
  .article-content h3 { font-size: clamp(1.12rem, 5vw, 1.25rem); line-height: 1.45; }
  .article-content :is(img, iframe, video) { max-width: 100%; height: auto; }
  .article-content table { display: block; max-width: 100%; overflow-x: auto; }
  .sidebar, .blog-sidebar { position: static; order: 2; }
}
