/* ============================================================
   BLOG POST — page-specific components
   ============================================================ */

/* Page hero blobs (compact) */
.page-hero .hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.page-hero .hero-blob.top-right { width: 420px; height: 420px; background: var(--accent); opacity: 0.08; top: 10%; right: -6%; }
.page-hero .hero-blob.bottom-left { width: 320px; height: 320px; background: var(--accent-deep); opacity: 0.05; bottom: -10%; left: -6%; }
.bulls-mode .page-hero .hero-blob.top-right { opacity: 0.18; }
.bulls-mode .page-hero .hero-blob.bottom-left { opacity: 0.14; }

/* Article hero — left aligned */
.post-hero { text-align: left; padding-bottom: var(--space-10); }
.post-hero .page-hero-inner { text-align: left; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-8);
}
.tag-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent-faint);
  border-radius: var(--radius-pill);
  background: var(--accent-faint);
}

.post-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-feature-settings: "palt" 1;
  color: var(--text);
  max-width: 900px;
  margin: 0 0 var(--space-10);
}

/* Author meta block */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 900px;
}
.post-meta-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0;
  flex-shrink: 0;
  box-shadow: 0 1px 0 0 var(--accent-light) inset, 0 6px 16px -6px var(--accent-glow);
}
.bulls-mode .author-avatar { color: #0A0A0A; }
.author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.3;
}
.author-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.post-meta-divider { width: 1px; height: 28px; background: var(--border); }
@media (max-width: 767px) { .post-meta-divider { display: none; } }
.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  text-transform: uppercase;
}
.post-meta-item i { width: 14px; height: 14px; stroke-width: 2; color: var(--accent); }

/* Cover image placeholder */
.post-cover {
  max-width: 1120px;
  margin: var(--space-16) auto 0;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .post-cover { padding: 0 var(--space-16); }
}
.post-cover-inner {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--accent-pale), var(--bg-alt));
  border: 1px solid var(--border);
}
.bulls-mode .post-cover-inner {
  background: linear-gradient(135deg, rgba(255,107,53,0.18), var(--bg-alt));
}
.post-cover-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, var(--accent-faint) 0, var(--accent-faint) 2px, transparent 2px, transparent 22px),
    radial-gradient(circle at 75% 25%, var(--accent-glow), transparent 55%);
  opacity: 0.85;
}
.post-cover-mark {
  position: absolute;
  left: var(--space-8); bottom: var(--space-8);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.post-cover-mark .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.post-cover-title {
  position: absolute;
  right: var(--space-8); top: var(--space-8);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.28;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Article body wrapper (grid with sticky TOC) */
.post-body-section {
  padding: var(--space-20) 0 var(--space-24);
}
@media (min-width: 1024px) {
  .post-body-section { padding: var(--space-24) 0 var(--space-32); }
}
.post-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
}
@media (min-width: 1024px) {
  .post-layout { padding: 0 var(--space-16); }
}
.post-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
@media (min-width: 1024px) {
  .post-layout-grid {
    grid-template-columns: minmax(0, 720px) 220px;
    justify-content: center;
    gap: var(--space-12);
  }
}

/* Sticky TOC (desktop only) */
.post-toc {
  display: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
@media (min-width: 1024px) {
  .post-toc {
    display: block;
    position: sticky;
    top: 120px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
}
.post-toc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-toc-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}
.post-toc ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: var(--space-3);
  counter-reset: toc;
}
.post-toc li { counter-increment: toc; }
.post-toc a {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-sub);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  padding: 4px 0;
  transition: color var(--dur-norm) var(--ease);
  border: none;
}
.post-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.7;
}
.post-toc a:hover { color: var(--accent); }

/* Lead paragraph — larger, accent rule on left */
.post-lead-p {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text-sub);
  font-weight: 300;
  letter-spacing: 0.04em;
  padding-left: var(--space-5);
  border-left: 2px solid var(--accent);
  margin: 0 0 var(--space-10);
}

/* Pre / code block */
.article pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0 var(--space-8);
  overflow-x: auto;
  color: var(--text);
  letter-spacing: 0.01em;
  position: relative;
}
.article pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 10px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}
.article pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* In-article CTA banner */
.inline-cta {
  margin: var(--space-12) 0;
  padding: var(--space-8);
  background: var(--accent-faint);
  border: 1px solid var(--accent-faint);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .inline-cta { grid-template-columns: 1fr auto; gap: var(--space-8); }
}
.inline-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.inline-cta-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-3);
}
.inline-cta-kicker::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--accent);
}
.inline-cta-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.inline-cta-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-sub);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin: 0;
  max-width: 48ch;
}

/* Author profile card (at article end) */
.author-card {
  max-width: 720px;
  margin: var(--space-16) auto 0;
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  position: relative;
}
@media (min-width: 640px) {
  .author-card { grid-template-columns: auto 1fr; gap: var(--space-6); }
}
.author-card-kicker {
  position: absolute;
  top: -10px; left: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
  padding: 0 10px;
}
.author-card .author-avatar {
  width: 80px; height: 80px;
  font-size: 26px;
}
.author-card-body { display: flex; flex-direction: column; gap: 6px; }
.author-card-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.author-card-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.author-card-bio {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-sub);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 6px;
}
.author-card-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.author-card-links a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--dur-norm) var(--ease);
  border-bottom: 1px solid var(--border);
}
.author-card-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.author-card-links i { width: 15px; height: 15px; stroke-width: 2; }

/* Related posts (reuses .blog-grid / .blog-card from main.css) */
.section.related-posts { padding: var(--space-20) 0; }
@media (min-width: 1024px) {
  .section.related-posts { padding: var(--space-24) 0; }
}

/* Newsletter section — same as blog-listing */
.newsletter {
  position: relative;
  padding: var(--space-10) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .newsletter { padding: var(--space-12) var(--space-16); }
}
.newsletter::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 360px; height: 360px;
  background: radial-gradient(circle at top right, var(--accent-faint), transparent 68%);
  opacity: 0.9;
  pointer-events: none;
}
.bulls-mode .newsletter::before { opacity: 0.9; }
.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .newsletter-inner { grid-template-columns: 1.1fr 1fr; gap: var(--space-12); }
}
.newsletter-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-5);
}
.newsletter-kicker::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--accent);
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: var(--space-4);
  font-feature-settings: "palt" 1;
}
.newsletter-title .accent { color: var(--accent); }
.newsletter-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-sub);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-5);
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.newsletter-form-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.newsletter-form-label .required { color: var(--accent); }
.newsletter-input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 600px) {
  .newsletter-input-row { grid-template-columns: 1fr auto; }
}
.newsletter-input {
  font: inherit;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  transition: all var(--dur-norm) var(--ease);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint);
}
.newsletter-form .btn { justify-content: center; padding: 14px 24px; }
.newsletter-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-2);
}
.newsletter-note a { color: var(--accent); border-bottom: 1px solid var(--accent-faint); }

/* Section spacing tweaks on this page */
.section.blog-newsletter { padding: var(--space-16) 0 var(--space-20); }
@media (min-width: 1024px) {
  .section.blog-newsletter { padding: var(--space-20) 0 var(--space-24); }
}

/* Section header utilities (re-usable) */
.section-top { margin-bottom: var(--space-12); max-width: 56rem; }
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-5);
  font-feature-settings: "palt" 1;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
