/* blog-post.css — inline in each blog post */
.post-hero {
  background: var(--ink);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 60% 40%, rgba(34,84,244,0.2), transparent 70%);
}
.post-hero > * { position: relative; }
.post-hero__inner { max-width: 760px; }
.post-hero__meta {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.post-hero h1 { color: #fff; margin-bottom: 16px; font-size: clamp(1.8rem,4vw,2.8rem); }
.post-hero p.lead { color: rgba(255,255,255,0.7); font-size: 1.1rem; line-height: 1.65; max-width: 640px; }

.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 64px 0 96px;
  align-items: start;
}

.post-content {
  max-width: 720px;
}
.post-content h2 {
  font-size: 1.55rem;
  margin: 40px 0 16px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
}
.post-content h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--ink);
}
.post-content p { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 20px; }
.post-content li { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 6px; }
.post-content strong { color: var(--ink); font-weight: 600; }
.post-content a { color: var(--accent); font-weight: 500; }
.post-content a:hover { text-decoration: underline; }

.post-table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.post-table { width: 100%; border-collapse: collapse; }
.post-table th {
  background: var(--ink); color: #fff;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 12px 16px; text-align: left;
}
.post-table td { padding: 11px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border); color: var(--ink-soft); }
.post-table tr:last-child td { border-bottom: none; }
.post-table tr:nth-child(even) td { background: var(--bg); }

.post-callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.post-callout p { margin: 0; color: var(--accent-dark); }
.post-callout strong { color: var(--accent-dark); }

.post-cta {
  background: var(--ink);
  border-radius: 16px;
  padding: 32px;
  margin: 36px 0;
  text-align: center;
}
.post-cta h3 { color: #fff; margin-bottom: 8px; }
.post-cta p { color: rgba(255,255,255,0.6); margin-bottom: 20px; }

/* Sidebar */
.post-sidebar {}
.sidebar-widget {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.sidebar-widget h4 {
  font-family: var(--font-head);
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-mute); margin-bottom: 16px;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { margin-bottom: 12px; }
.sidebar-widget a {
  font-size: 0.9rem; color: var(--ink-soft);
  display: flex; gap: 8px; align-items: flex-start;
  line-height: 1.4; transition: color 0.2s;
}
.sidebar-widget a:hover { color: var(--accent); text-decoration: none; }
.sidebar-widget a::before { content: '→'; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.sidebar-calc {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px; text-align: center; margin-bottom: 20px;
}
.sidebar-calc h4 { color: #fff; margin-bottom: 8px; font-size: 1rem; }
.sidebar-calc p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 16px; }
.sidebar-calc .btn { background: #fff; color: var(--accent); width: 100%; justify-content: center; }
.sidebar-calc .btn:hover { background: #f0f4ff; text-decoration: none; }

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