/* Blog listing skin (blog index, category, archive, per-product blog). Load after tokens.css + articles.css. */
main .container { max-width: 1120px; }
.blog-header { max-width: 1320px; margin: 0 auto; padding: 0 28px 36px; }
.blog-header h1 { margin-bottom: 14px; }
.subtitle { font-size: 18px; color: var(--text-secondary); max-width: 720px; margin: 0; }
.tag-intro { font-size: 16px; color: var(--text-secondary); line-height: 1.65; margin-top: 8px; max-width: 720px; }
.breadcrumb { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 18px; padding: 0; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent); }

/* Filter chips */
.category-tabs { max-width: 1320px; margin: 0 auto; padding: 0 28px 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.category-tab { font-size: 13px; font-weight: 700; padding: 0 16px; min-height: 44px; background: var(--bg-raised); border-radius: 999px; color: var(--text-secondary); text-decoration: none; transition: background-color 0.15s, color 0.15s; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 0 0 1px var(--border); }
.category-tab .count { font-size: 11px; opacity: 0.7; }
.category-tab:hover { color: var(--text); background: var(--bg-surface); }
.category-tab.active { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

.blog-layout { max-width: 1320px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.sidebar { position: sticky; top: 100px; }
.sidebar-section { margin-bottom: 20px; padding: 22px; background: var(--bg-raised); border-radius: var(--radius-card); box-shadow: var(--shadow-float); }
.sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 14px; }

.cat-list, .archive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: inherit; }
.cat-list a, .archive-list a { font-size: 14px; font-weight: 600; color: var(--text-secondary); text-decoration: none; display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding: 0 10px; margin: 0 -10px; border-radius: 0.75rem; transition: background-color 0.15s, color 0.15s; }
.cat-list a:hover, .archive-list a:hover { color: var(--text); background: var(--bg-surface); }
.cat-list .count, .archive-list .count { font-size: 12px; font-weight: 600; color: var(--text-muted); }

.cat-list a.category-tab { box-shadow: none; background: transparent; border-radius: 0.75rem; min-height: 40px; padding: 0 10px; font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.cat-list a.category-tab:hover { background: var(--bg-surface); color: var(--text); }
.cat-list a.category-tab.active { background: var(--tint-green); color: var(--tint-green-ink); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 6px 12px; background: var(--bg-surface); border: 0; border-radius: 999px; color: var(--text-secondary); text-decoration: none; transition: background-color 0.15s, color 0.15s; cursor: pointer; font-family: inherit; }
.tag:hover, .tag.active { color: var(--tint-green-ink); background: var(--tint-green); }

.search-box { display: flex; align-items: center; background: var(--bg-surface); border-radius: 999px; padding-left: 4px; }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0 14px; min-height: 44px; font-family: var(--font-sans); font-size: 14px; color: var(--text); outline: none; }
.search-box:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search-box input::placeholder { color: var(--text-muted); }
.search-box button { background: transparent; border: 0; min-width: 44px; min-height: 44px; color: var(--text-muted); cursor: pointer; font-size: 15px; }
.search-box button:hover { color: var(--text); }

.page-info { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 20px; }
.page-info .search-count, .search-count { margin-left: 12px; font-size: 13px; color: var(--text-muted); }

/* Post cards */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-item { display: block; background: var(--bg-raised); padding: 30px 32px; border-radius: var(--radius-card); box-shadow: var(--shadow-float); text-decoration: none; color: inherit; transition: transform 0.2s var(--ease-out); }
.post-item:hover { transform: translateY(-2px); color: inherit; }
.post-item .post-meta { margin-bottom: 14px; }
.post-meta .sep { margin: 0 6px; color: inherit; opacity: 0.5; }
.post-title { font-weight: 800; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); margin: 0 0 10px; padding: 0; border: 0; text-transform: none; transition: color 0.15s; }
.post-item:hover .post-title { color: var(--accent); }
.post-excerpt { font-size: 16px; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.post-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags span { font-size: 12px; font-weight: 600; color: var(--text-secondary); background: var(--bg-surface); border-radius: 999px; padding: 4px 12px; }
.read-more { font-size: 14px; font-weight: 700; color: var(--accent); margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }
.read-more::after { content: '→'; transition: transform 0.2s var(--ease-out); }
.post-item:hover .read-more::after { transform: translateX(4px); }
.no-results { font-size: 16px; color: var(--text-secondary); text-align: center; padding: 48px 24px; border-radius: var(--radius-card); background: var(--bg-raised); box-shadow: var(--shadow-float); }

@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { display: contents; }
  .sidebar-section { margin-bottom: 0; }
  .sidebar-section:nth-child(1) { order: 0; }
  .blog-layout > div { order: 1; }
  .sidebar-section:nth-child(n+3) { order: 2; }
  /* The category tabs above already cover this list. */
  .sidebar-section:nth-child(2) { display: none; }
}
@media (max-width: 640px) {
  .post-item { padding: 24px 22px; }
  .blog-header, .category-tabs, .blog-layout { padding-left: 20px; padding-right: 20px; }
}
