.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.filter-btn.active {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
}

.article-header {
  padding: 48px 0 32px;
  background: var(--gradient-hero);
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 800px;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  padding: 48px 0 80px;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 1.125rem;
  margin: 28px 0 12px;
}

.article-body p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.key-points {
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.key-points h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.key-points ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
}

.key-points li { margin-bottom: 8px; }

.sidebar-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: 0.875rem;
}

.sidebar-toc h2 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sidebar-toc a {
  display: block;
  padding: 8px 0;
  color: var(--text-secondary);
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.sidebar-toc a.active,
.sidebar-toc a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.author-bio {
  margin-top: 48px;
  padding: 28px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-bio img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar-toc { position: static; order: -1; }
}

/* Blog article visuals */
.article-figure {
  margin: 28px 0 32px;
  border: 1px solid var(--v0-line);
  background: var(--bg-light);
  overflow: hidden;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure figcaption {
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--v0-line);
  background: var(--bg-white);
}

.cwv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 32px;
}

.cwv-card {
  border: 1px solid var(--v0-line);
  background: var(--bg-white);
  padding: 20px 16px;
  text-align: center;
}

.cwv-card .cwv-metric {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 700;
  margin: 0 0 8px;
}

.cwv-card .cwv-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-950);
  margin: 0 0 6px;
  line-height: 1.1;
}

.cwv-card .cwv-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.4;
}

.cwv-bar {
  display: flex;
  height: 8px;
  width: 100%;
  overflow: hidden;
}

.cwv-bar span { display: block; height: 100%; }
.cwv-bar .good { background: var(--green-500); flex: 2.5; }
.cwv-bar .needs { background: #e6b800; flex: 1.5; }
.cwv-bar .poor { background: #c44b3c; flex: 1; }
.cwv-bar.inp .good { flex: 2; }
.cwv-bar.inp .needs { flex: 3; }
.cwv-bar.cls .good { flex: 1; }
.cwv-bar.cls .needs { flex: 1.5; }
.cwv-bar.cls .poor { flex: 1; }

.cwv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: -12px 0 28px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cwv-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
}

.cwv-legend .good { background: var(--green-500); }
.cwv-legend .needs { background: #e6b800; }
.cwv-legend .poor { background: #c44b3c; }

.checklist-visual {
  margin: 24px 0 32px;
  border: 1px solid var(--v0-line);
  background: linear-gradient(180deg, #f7faf0 0%, #fff 48%);
}

.checklist-visual ol {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  counter-reset: cwv-step;
}

.checklist-visual li {
  counter-increment: cwv-step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--v0-line);
  color: var(--text-secondary);
  line-height: 1.55;
}

.checklist-visual li:last-child { border-bottom: 0; }

.checklist-visual li::before {
  content: counter(cwv-step);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-950);
  color: var(--green-500);
  font-weight: 800;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.checklist-visual strong {
  display: block;
  color: var(--ink-950);
  margin-bottom: 2px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 32px;
}

.compare-panel {
  border: 1px solid var(--v0-line);
  padding: 20px;
  background: var(--bg-white);
}

.compare-panel.bad {
  background: #fbf4f3;
  border-color: #e8c4bf;
}

.compare-panel.good {
  background: #f3f8e8;
  border-color: #c5dba0;
}

.compare-panel h3 {
  margin: 0 0 10px;
  font-size: 0.9375rem;
}

.compare-panel ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.compare-panel li {
  position: relative;
  padding-left: 1.1em;
}

.compare-panel li + li {
  margin-top: 0.25em;
}

.compare-panel li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

@media (max-width: 700px) {
  .cwv-grid,
  .compare-row {
    grid-template-columns: 1fr;
  }
}
