/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 100px 0 0;
  font-family: var(--font-body); font-size: 12px; font-weight: 400;
}
.breadcrumbs a {
  color: var(--fg3); text-decoration: none; transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--mint); }
.breadcrumb-sep { color: var(--fg3); margin: 0 6px; opacity: 0.5; }
.breadcrumb-current { color: var(--fg2); }

/* ── BLOG HERO ── */
.blog-hero {
  padding: 140px 0 72px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.blog-hero h1 span { color: var(--mint); }
.blog-hero p {
  font-size: 16px;
  color: var(--fg2);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── POST GRID ── */
.posts-section { padding: 0 0 96px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── POST CARD ── */
.post-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--mint-border);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--card2);
}
.post-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img img {
  transform: scale(1.04);
}
/* Placeholder when no featured image */
.post-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--card) 0%, var(--card2) 100%);
}
.post-card-img-placeholder svg { opacity: 0.3; }
.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-category {
  display: inline-block;
  font-family: var(--font-body); font-weight: 500;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mint);
  background: var(--mint-dim); border: 1px solid var(--mint-border);
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}
[data-theme="light"] .post-card-category { color: #0A6B48; }
.post-card-body h3 {
  font-size: 18px;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.post-card-body p {
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--fg3);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.post-card-footer span {
  display: flex; align-items: center; gap: 5px;
}
.post-card-footer svg {
  width: 12px; height: 12px;
  stroke: var(--fg3); fill: none; stroke-width: 1.4;
}

/* ── CTA BAND ── */
.cta-band {
  border-top: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--fg);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.cta-band h2 span { color: var(--mint); }
.cta-band p {
  font-size: 15px;
  color: var(--fg2);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.cta-band-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── ARTICLE HEADER ── */
.article-header {
  padding: 140px 0 48px;
  text-align: center;
}
.article-header .label { margin-bottom: 20px; }
.article-header h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.article-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg3);
}
.article-meta span {
  display: flex; align-items: center; gap: 6px;
}
.article-meta svg {
  width: 14px; height: 14px;
  stroke: var(--fg3); fill: none; stroke-width: 1.4;
}

/* ── FEATURED IMAGE ── */
.article-hero-img {
  max-width: 960px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.article-hero-img img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border2);
}

/* ── ARTICLE CONTENT ── */
.article-content {
  padding: 56px 0 80px;
}
.article-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--fg);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.article-content h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--fg);
  margin: 36px 0 12px;
}
.article-content p {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.8;
  margin-bottom: 20px;
}
.article-content ul,
.article-content ol {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.8;
  margin: 0 0 20px 24px;
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 3px solid var(--mint);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--mint-dim);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.article-content blockquote p {
  color: var(--fg);
  font-size: 16px;
  margin-bottom: 0;
}
.article-content img {
  border-radius: var(--r-sm);
  margin: 28px 0;
  border: 1px solid var(--border2);
}
.article-content a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.article-content a:hover { opacity: 0.8; }
.article-content pre {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg2);
}
.article-content code {
  background: var(--card2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--mint);
}
.article-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-content th,
.article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--fg2);
}
.article-content th {
  color: var(--fg);
  font-weight: 600;
  border-bottom-color: var(--border2);
}

/* ── BACK TO BLOG ── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 13px; color: var(--fg3);
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border);
  transition: var(--t);
  margin-bottom: 48px;
}
.back-link:hover { border-color: var(--mint); color: var(--mint); }
.back-link svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* ── RELATED POSTS ── */
.related-section {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
.related-section h2 {
  font-size: 24px;
  color: var(--fg);
  margin-bottom: 32px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--t);
}
.related-card:hover {
  border-color: var(--mint-border);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.related-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--card2);
}
.related-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.related-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--card) 0%, var(--card2) 100%);
}
.related-card-img-placeholder svg { opacity: 0.3; }
.related-card-body {
  padding: 20px;
}
.related-card-body h3 {
  font-size: 16px;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 8px;
}
.related-card-body span {
  font-size: 12px;
  color: var(--fg3);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-ghost { display: none; }
  .hamburger { display: flex; }
  .blog-hero { padding: 120px 0 48px; }
  .article-header { padding: 120px 0 36px; }
}
