/* Blog list and article pages. Loaded after styles.css. */
body.blog-page { display: flex; flex-direction: column; min-height: 100vh; font-family: 'Roboto', sans-serif; }
.blog-page h1, .blog-page h2, .blog-page h3 { font-family: 'Geist', sans-serif; }

/* Page header */
.blog-header { max-width: 1100px; width: 100%; margin: 0 auto; padding: 80px 48px 48px; }
.blog-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.blog-header p { font-family: 'Roboto', sans-serif; font-size: 1.05rem; color: var(--slate); line-height: 1.65; }

/* Layout */
.blog-layout { display: flex; gap: 56px; max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 48px 96px; flex: 1; align-items: flex-start; }

/* Sidebar */
.blog-sidebar { width: 160px; flex-shrink: 0; position: sticky; top: 96px; }
.blog-sidebar h4 { font-family: 'Roboto', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.date-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.date-nav li a { display: block; font-family: 'Roboto', sans-serif; font-size: 0.875rem; color: var(--slate); text-decoration: none; padding: 6px 10px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.date-nav li a:hover { background: var(--light-bg); color: var(--navy); }
.date-nav li a.active { background: var(--light-bg); color: var(--navy); font-weight: 600; }
.date-nav .nav-latest { font-weight: 600; color: var(--blue); }
.date-nav .nav-latest:hover { background: rgba(26,122,255,0.08); color: var(--blue); }
.date-nav .nav-divider { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 8px 0; }

/* Post list */
.blog-posts { flex: 1; min-width: 0; }
.post-link { display: block; color: inherit; text-decoration: none; }
.post-link:focus-visible { outline: 2px solid var(--primary-app, #72a4ff); outline-offset: 4px; border-radius: 12px; }

.post-featured { border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; margin-bottom: 48px; transition: box-shadow 0.15s, border-color 0.15s; }
.post-featured:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-color: rgba(26,122,255,0.25); }
.post-featured-body { padding: 36px; }
.post-tag { display: inline-block; font-family: 'Roboto', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); background: rgba(26,122,255,0.08); border-radius: 4px; padding: 3px 8px; margin-bottom: 12px; }
.post-featured h2 { font-size: 1.6rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; line-height: 1.3; }
.post-excerpt { font-family: 'Roboto', sans-serif; font-size: 0.975rem; color: #4b5563; line-height: 1.7; margin-bottom: 20px; }
.post-meta { font-family: 'Roboto', sans-serif; font-size: 0.8rem; color: var(--slate); }

.month-group { margin-bottom: 48px; }
.month-label { font-family: 'Roboto', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); border-bottom: 1px solid rgba(0,0,0,0.07); padding-bottom: 10px; margin-bottom: 20px; }

.post-card { padding: 20px 12px; margin: 0 -12px; border-bottom: 1px solid rgba(0,0,0,0.06); border-radius: 8px; transition: background 0.15s; }
.post-card:last-child { border-bottom: none; }
.post-card:hover { background: var(--light-bg); }
.post-card .post-link { display: flex; flex-direction: column; gap: 6px; }
.post-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.post-card .post-excerpt { font-size: 0.9rem; line-height: 1.65; margin-bottom: 0; }
.post-card .post-meta { font-size: 0.78rem; margin-top: 4px; }

/* Article page */
.article-wrap { max-width: 760px; width: 100%; margin: 0 auto; padding: 96px 48px; flex: 1; }
.article-back { display: inline-flex; align-items: center; gap: 6px; font-family: 'Roboto', sans-serif; font-size: 0.875rem; font-weight: 500; color: var(--slate); text-decoration: none; margin-bottom: 32px; transition: color 0.15s; }
.article-back:hover { color: var(--navy); }
.article-back svg { width: 15px; height: 15px; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; color: var(--navy); line-height: 1.25; margin-bottom: 12px; }
.article-header .post-meta { font-size: 0.85rem; }
.article-body { font-family: 'Roboto', sans-serif; font-size: 1rem; color: #374151; line-height: 1.8; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: 'Geist', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--navy); margin: 32px 0 12px; }
.article-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.article-cta { margin-top: 40px; padding: 24px; border-radius: 12px; background: var(--light-bg); font-family: 'Roboto', sans-serif; color: #374151; line-height: 1.6; }
.article-cta a { color: var(--navy); font-weight: 600; }

@media (max-width: 768px) {
  .blog-header { padding: 64px 20px 32px; }
  .blog-layout { flex-direction: column; gap: 32px; padding: 0 20px 64px; }
  .blog-sidebar { width: 100%; position: static; }
  .date-nav { flex-direction: row; flex-wrap: wrap; }
  .article-wrap { padding: 64px 20px; }
}
