
/* ── Blog specific styles ────────────────────────────────── */

/* Article card */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green);
  transform: translateY(-2px);
}
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--navy-2);
}
.article-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-cat {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.article-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--muted-2);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.article-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-2);
  flex-shrink: 0;
}

/* Article body typography */
.article-body {
  max-width: 720px;
}
.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--text);
}
.article-body h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--text);
}
.article-body p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--green-d); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  margin: 24px 0;
}
.article-body th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}
.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body blockquote {
  border-left: 3px solid var(--green);
  padding: 14px 20px;
  margin: 24px 0;
  background: rgba(0,194,122,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p { margin: 0; font-style: italic; }
.article-callout {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
  color: var(--white);
}
.article-callout p { color: rgba(255,255,255,.7); margin-bottom: 16px; }

/* Article layout grid */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.article-sidebar {
  position: sticky;
  top: 88px;
}
.toc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.toc-title {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc-link {
  display: block;
  font-size: .875rem;
  color: var(--muted);
  padding: 5px 0;
  border-left: 2px solid var(--border);
  padding-left: 12px;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}
.toc-link:hover, .toc-link.active {
  color: var(--green);
  border-color: var(--green);
}
.toc-link-h3 { padding-left: 24px; font-size: .8125rem; }

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