/* ============================================================
   Blog post (article) page — extends the shared token system
   in style.css. Prefix: .post-
   ============================================================ */

.post > section{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.post-hero{ padding-top: 168px; padding-bottom: 8px; }
.post-hero .section__head{ max-width: 820px; margin-bottom: 0; }

.post-title{
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.post-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}
.post-meta span{ display: inline-flex; align-items: center; gap: 7px; }
.post-meta i{ font-size: 12px; color: var(--accent-2); }

.post-body{ padding-top: 40px; padding-bottom: 88px; }

/* ---------- layout: sticky ToC + content ---------- */
.post-layout{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

.post-toc{
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-sm);
}
.post-toc__label{
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.post-toc__list{
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-toc__list li{ counter-increment: toc; }
.post-toc__list a{
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-dim);
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.post-toc__list a::before{
  content: counter(toc);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-2);
  flex-shrink: 0;
}
.post-toc__list a:hover{ background: var(--bg-soft); color: var(--text); }
.post-toc__list a.is-active{ background: var(--accent-soft); color: var(--accent); }
.post-toc__list a.is-active::before{ color: var(--accent); }

/* ---------- article typography ---------- */
.post-content{ max-width: 720px; }
.post-content p{ font-size: 15.5px; line-height: 1.75; color: var(--text-dim); margin: 0 0 20px; }
.post-content h2{
  font-size: 24px;
  margin: 44px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.post-content h2:first-of-type{ margin-top: 0; }
.post-content h3{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}
.post-content ul{
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-content ul li{
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}
.post-content ul li::before{
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.post-content strong{ color: var(--text); font-weight: 700; }

/* ---------- pros/cons table ---------- */
.post-table-wrap{
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.post-table{ width: 100%; border-collapse: collapse; font-size: 14.5px; }
.post-table th{
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.post-table td{
  padding: 12px 16px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.post-table tr:last-child td{ border-bottom: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .post-layout{ grid-template-columns: 1fr; }
  .post-toc{ position: static; order: -1; }
  .post-hero{ padding-top: 148px; }
}

@media (max-width: 720px){
  .post-hero{ padding-top: 136px; }
  .post-body{ padding-top: 28px; padding-bottom: 60px; }
  .post-content h2{ font-size: 21px; margin-top: 34px; }
}