/* ─── BLOG LISTING ─── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.blog-card { overflow: hidden; }
.blog-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: var(--bg-hover); border-bottom: 1px solid var(--border); overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 20px; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.blog-cat { font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: var(--cyan); letter-spacing: 0.07em; text-transform: uppercase; }
.blog-date { font-size: 11px; color: var(--text-lo); }
.blog-card h2, .blog-card h3 { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--text-hi); line-height: 1.4; margin-bottom: 7px; letter-spacing: -0.01em; }
.blog-card h2 a, .blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--cyan); }
.blog-card p { font-size: 12px; color: var(--text-md); line-height: 1.6; }
.read-time { margin-top: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); }

/* ─── SINGLE POST LAYOUT ─── */
.single-wrap { max-width: 1160px; margin: 0 auto; padding: 52px 60px; }
.single-hero { margin-bottom: 36px; border-bottom: 1px solid var(--border); padding-bottom: 28px; }
.single-title { font-family: var(--font-head); font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.025em; color: var(--text-hi); line-height: 1.15; margin: 10px 0 16px; }
.single-body { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.single-content { min-width: 0; }
.single-sidebar { min-width: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.single-tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── SIDEBAR ─── */
.sidebar-heading { font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: var(--text-md); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.recent-posts-list { list-style: none; padding: 0; }
.recent-posts-list li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.recent-posts-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.recent-posts-list a { font-size: 12px; color: var(--text-md); text-decoration: none; line-height: 1.4; display: block; }
.recent-posts-list a:hover { color: var(--cyan); }
.cat-list { display: flex; flex-wrap: wrap; gap: 5px; }
.cat-list a { padding: 3px 9px; background: var(--bg-hover); border: 1px solid var(--border); border-radius: 5px; font-family: var(--font-mono); font-size: 10px; color: var(--text-md); text-decoration: none; }
.cat-list a:hover { border-color: var(--border-md); color: var(--cyan); }

/* ─── PROSE (post body content) ─── */
.prose { color: var(--text-md); font-size: 15px; line-height: 1.85; }
.prose p { margin-bottom: 1.25em; }
.prose h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-hi); margin: 2em 0 0.5em; }
.prose h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--text-hi); margin: 1.5em 0 0.4em; }
.prose h4 { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--text-hi); margin: 1.2em 0 0.3em; }
.prose a { color: var(--cyan); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text-hi); font-weight: 600; }
.prose em { font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; color: var(--mint); }
.prose pre { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; overflow-x: auto; margin: 1.5em 0; }
.prose pre code { background: none; padding: 0; color: var(--text-md); font-size: 13px; }
.prose blockquote { border-left: 3px solid var(--text-hi); margin: 1.5em 0; padding: 12px 20px; font-style: italic; color: var(--text-md); background: var(--bg-card); border-radius: 0 8px 8px 0; }
.prose ul { padding-left: 1.5em; margin-bottom: 1.25em; list-style: disc; }
.prose ol { padding-left: 1.5em; margin-bottom: 1.25em; list-style: decimal; }
.prose ul li, .prose ol li { margin-bottom: 0.4em; line-height: 1.8; }
.prose img { max-width: 100%; border-radius: 10px; margin: 1.5em 0; display: block; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ─── POST META ─── */
.post-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.post-meta-item { font-size: 12px; color: var(--text-md); font-family: var(--font-mono); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .single-wrap { padding: 36px 24px; }
  .single-body { grid-template-columns: 1fr; }
  .single-sidebar { display: none; }
}
@media (max-width: 600px) {
  .single-wrap { padding: 24px 16px; }
  .single-title { font-size: 24px; }
}