/* ─── blog.css — Sessemi blog layout ─── */

/* ─── SCROLL-TRIGGERED NAV CTA ─── */
.nav-cta {
  display: inline-block; padding: 0.45rem 1rem;
  background: var(--green); color: var(--bg-deep);
  font-weight: 600; font-size: 0.82rem; border-radius: 6px;
  text-decoration: none; transition: opacity 0.3s, transform 0.3s;
  opacity: 0; transform: translateY(-4px);
  pointer-events: none;
}
.nav-cta.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-cta:hover { opacity: 0.85; text-decoration: none; }

/* ─── 3-COLUMN GRID ─── */
.blog-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 640px) 180px;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  align-items: start;
}

/* ─── LEFT: Table of Contents ─── */
.toc {
  position: sticky; top: 84px;
  padding-top: 0.5rem;
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 0.35rem; }
.toc-list a {
  font-size: 0.78rem; color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 0.2rem 0 0.2rem 0.75rem;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.toc-list a:hover { color: var(--text-secondary); }
.toc-list a.active {
  color: var(--green);
  border-left-color: var(--green);
}

/* ─── CENTER: Article ─── */
article { min-width: 0; }
article h2 { scroll-margin-top: 84px; }

.back-link {
  display: inline-block; font-size: 0.85rem; color: var(--text-muted);
  text-decoration: none; margin-bottom: 2rem; transition: color 0.2s;
}
.back-link:hover { color: var(--text-secondary); }
.meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.callout {
  background: var(--bg-surface); border-left: 3px solid var(--green);
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0;
}
.callout p { margin-bottom: 0; }

/* ─── COMPARISON TABLE ─── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.82rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-bright);
  padding-bottom: 0.5rem;
}
.comparison-table tbody td { color: var(--text-secondary); }
.comparison-table tbody td:first-child { color: var(--text-primary); font-weight: 500; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr.row-highlight td {
  background: var(--green-subtle);
  color: var(--text-primary);
}
.comparison-table tbody tr.row-highlight td:first-child {
  color: var(--green);
  font-weight: 600;
}
.cell-yes { color: var(--green); }
.cell-no { color: var(--red); }
.cell-partial { color: var(--amber); }

/* ─── RIGHT: Sidebar CTA ─── */
.sidebar-cta {
  position: sticky; top: 84px;
  padding-top: 0.5rem;
}
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
}
.sidebar-card-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.sidebar-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.sidebar-btn {
  display: block; width: 100%; padding: 0.6rem 0;
  background: var(--green); color: var(--bg-deep);
  font-weight: 600; font-size: 0.82rem; font-family: var(--font-display);
  border: none; border-radius: 6px; cursor: pointer;
  text-align: center; text-decoration: none;
  transition: opacity 0.2s;
}
.sidebar-btn:hover { opacity: 0.85; text-decoration: none; }
.sidebar-credit {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ─── BOTTOM CTA ─── */
.cta {
  display: inline-block; margin-top: 1.5rem; padding: 0.7rem 1.5rem;
  background: var(--green); color: var(--bg-deep); font-weight: 600;
  font-size: 0.9rem; border-radius: 8px; text-decoration: none;
  transition: opacity 0.2s;
}
.cta:hover { opacity: 0.85; text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .blog-layout {
    display: block;
    max-width: 640px;
    padding: 7rem 1.5rem 5rem;
  }
  .toc, .sidebar-cta { display: none; }
}
