/* ============================================================
   Blog post — long-form article typography
   ============================================================ */

.post-wrap { background: var(--c-bg-primary); }

/* Header / hero ─────────────────────────────────────── */
.post-header {
  padding: 140px 0 60px;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(50% 70% at 80% 30%, rgba(59,130,246,0.08), transparent 60%),
    var(--c-bg-primary);
  border-bottom: 1px solid var(--c-hair);
  position: relative;
  overflow: hidden;
}
.post-header .container { max-width: 880px; }
.post-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: #22d3ee;
  margin-bottom: 24px;
}
.post-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: #22d3ee;
}
.post-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 700; color: var(--c-white-pure);
  margin-bottom: 20px; text-wrap: balance;
}
.post-deck {
  font-size: 20px; line-height: 1.5;
  color: var(--c-g300); font-style: italic;
  max-width: 720px; margin-bottom: 32px;
}
.post-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--c-g400);
  padding-top: 24px; border-top: 1px solid var(--c-hair);
}
.post-meta .author {
  display: flex; align-items: center; gap: 10px;
}
.post-meta .author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 13px;
}
.post-meta .author-name {
  color: var(--c-white-pure); font-weight: 600; font-size: 14px;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-g600); }

/* Article body ──────────────────────────────────────── */
.post-body {
  padding: 60px 0 100px;
  position: relative;
}
.post-body .container { max-width: 760px; }

.post-body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--c-g200);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.post-body p:first-of-type::first-letter {
  font-size: 4em;
  font-weight: 700;
  line-height: 0.9;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--c-white-pure);
  font-family: var(--type-display, inherit);
}
.post-body h2 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--c-white-pure);
  margin: 64px 0 20px;
  scroll-margin-top: 100px;
}
.post-body h2 + p { margin-top: 0; }
.post-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-white-pure);
  margin: 48px 0 16px;
}
.post-body strong { color: var(--c-white-pure); font-weight: 600; }
.post-body em { color: var(--c-g100); }
.post-body a {
  color: #60a5fa;
  text-decoration: none;
  border-bottom: 1px solid rgba(96,165,250,0.4);
  transition: color 0.2s, border-color 0.2s;
}
.post-body a:hover { color: #93c5fd; border-bottom-color: #93c5fd; }

.post-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.post-body ul li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-g200);
  border-bottom: 1px solid var(--c-hair);
}
.post-body ul li:last-child { border-bottom: none; }
.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 19px;
  width: 14px; height: 1px;
  background: #22d3ee;
}

/* Pull-quote / callout ──────────────────────────────── */
.post-callout {
  margin: 40px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(34,211,238,0.06), rgba(59,130,246,0.04));
  border-left: 3px solid #22d3ee;
  border-radius: 4px;
}
.post-callout-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #22d3ee;
  margin-bottom: 10px;
}
.post-callout p {
  font-size: 18px; line-height: 1.6;
  color: var(--c-g100); margin: 0;
}
.post-callout p:first-of-type::first-letter {
  font-size: inherit; font-weight: inherit; line-height: inherit;
  float: none; margin: 0; color: inherit;
}

/* Stat band ─────────────────────────────────────────── */
.post-stat-band {
  margin: 48px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-hair-strong);
  border: 1px solid var(--c-hair-strong);
  border-radius: 8px;
  overflow: hidden;
}
.post-stat-band .stat {
  background: rgba(11,18,32,0.5);
  padding: 24px 20px;
  text-align: center;
}
.post-stat-band .stat-num {
  font-size: 36px; font-weight: 700;
  color: #22d3ee; letter-spacing: -0.02em;
  line-height: 1; margin-bottom: 8px;
}
.post-stat-band .stat-label {
  font-size: 12px; color: var(--c-g400);
  letter-spacing: 0.5px; line-height: 1.4;
}

/* Figures (full-bleed within content) ──────────────── */
.post-figure {
  margin: 56px 0;
}
.post-figure-frame {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--c-hair);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.post-figure-frame::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(80% 80% at 50% 50%, rgba(34,211,238,0.04), transparent 70%);
  pointer-events: none;
}
.post-figure svg { display: block; width: 100%; height: auto; position: relative; }
.post-figure .hero-fusion { display: flex; justify-content: center; align-items: center; min-height: 520px; }
.post-figure .fc-stage { transform-origin: center center; }
.post-figure figcaption {
  margin-top: 16px;
  font-size: 14px; line-height: 1.5;
  color: var(--c-g400);
  font-style: italic;
  text-align: center;
}

/* Stage-card chapter divider ────────────────────────── */
.post-stage {
  display: flex; align-items: center; gap: 16px;
  margin: 72px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-hair);
}
.post-stage-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700; color: white;
  font-feature-settings: 'tnum';
}
.post-stage-text { flex: 1; }
.post-stage-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #22d3ee;
  margin-bottom: 4px;
}
.post-stage h2 {
  margin: 0;
  font-size: 28px;
}

/* Table of contents (sticky on the side, desktop only) */
.post-toc {
  position: sticky;
  top: 100px;
  font-size: 13px;
  padding-left: 16px;
  border-left: 1px solid var(--c-hair);
}
.post-toc-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--c-g400);
  margin-bottom: 16px;
}
.post-toc a {
  display: block;
  padding: 8px 0;
  color: var(--c-g400);
  text-decoration: none;
  border: none;
  line-height: 1.4;
}
.post-toc a:hover { color: var(--c-white-pure); }
.post-toc a.active {
  color: #22d3ee;
  font-weight: 600;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: 1fr; max-width: 760px; }
  .post-toc { display: none; }
}

/* CTA at the bottom ─────────────────────────────────── */
.post-end-cta {
  margin: 80px 0 0;
  padding: 48px;
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(59,130,246,0.06));
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 16px;
  text-align: center;
}
.post-end-cta h3 {
  font-size: 26px;
  color: var(--c-white-pure);
  margin: 0 0 12px;
}
.post-end-cta p {
  font-size: 16px;
  color: var(--c-g300);
  margin: 0 0 24px;
}
.post-end-cta-actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

.post-footer-note {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--c-hair);
  font-size: 14px;
  color: var(--c-g400);
  font-style: italic;
  line-height: 1.6;
}

/* Related posts ─────────────────────────────────────── */
.post-related {
  padding: 80px 0;
  border-top: 1px solid var(--c-hair);
  background: rgba(255,255,255,0.01);
}

/* Fusion blog — function cards 2×2 grid ─────────────── */
.fc-functions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 32px 0 48px;
}
@media (max-width: 720px) {
  .fc-functions { grid-template-columns: 1fr; }
}
.fc-function {
  position: relative;
  padding: 26px 24px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--c-hair);
  border-radius: 14px;
  overflow: hidden;
}
.fc-function::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--fn-color, #22d3ee);
}
.fc-function-num {
  font-size: 13px;
  font-weight: 800;
  font-feature-settings: 'tnum';
  letter-spacing: 2px;
  color: var(--fn-color, #22d3ee);
  margin-bottom: 10px;
}
.fc-function h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--c-white-pure);
}
.fc-function p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-g300);
}

/* Fusion blog — scenarios ───────────────────────────── */
.fc-scenarios {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 48px;
}
.fc-scenario {
  position: relative;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--c-hair);
  border-radius: 14px;
}
.fc-scenario-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: #22d3ee;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.35);
  margin-bottom: 12px;
}
.fc-scenario h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--c-white-pure);
}
.fc-scenario p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--c-g200);
  margin: 0 0 12px;
}
.fc-scenario p:last-of-type { margin-bottom: 16px; }
.fc-scenario-chain {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--c-hair);
  border-radius: 999px;
  margin-bottom: 16px;
}
.fc-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--c, #22d3ee);
  background: color-mix(in oklch, var(--c, #22d3ee) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--c, #22d3ee) 45%, transparent);
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.fc-chip-arrow {
  color: var(--c-g500);
  font-size: 13px;
}
.fc-scenario-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(239,68,68,0.06);
  border-left: 3px solid #ef4444;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-g100);
}
.fc-result-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ef4444;
  text-transform: uppercase;
  padding-top: 3px;
}

/* EASM blog — questions-as-cards grid ───────────────── */
.easm-questions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0 48px;
}
@media (max-width: 720px) {
  .easm-questions { grid-template-columns: 1fr; }
}
.easm-question {
  position: relative;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--c-hair);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.easm-question::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--q-color, #22d3ee);
}
.easm-question::after {
  content: '"';
  position: absolute;
  top: -8px; right: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 72px;
  line-height: 1;
  color: var(--q-color, #22d3ee);
  opacity: 0.18;
  pointer-events: none;
}
.easm-question-q {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--c-white-pure);
  margin: 0 0 16px;
  font-weight: 500;
  text-wrap: pretty;
  flex: 1;
}
.easm-question-a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--c-hair);
  font-size: 13px;
  color: var(--c-g300);
  line-height: 1.45;
  flex-wrap: wrap;
}
.easm-question-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--q-color, #22d3ee);
  background: color-mix(in oklch, var(--q-color, #22d3ee) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--q-color, #22d3ee) 45%, transparent);
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.post-related h3 {
  font-size: 22px; color: var(--c-white-pure);
  margin: 0 0 32px;
}
.post-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 768px) {
  .post-related-grid { grid-template-columns: 1fr; }
}
.post-related-card {
  display: block;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--c-hair);
  border-radius: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--c-hair);
  transition: border-color 0.2s, transform 0.2s;
}
.post-related-card:hover {
  border-color: rgba(34,211,238,0.3);
  transform: translateY(-2px);
}
.post-related-meta {
  font-size: 12px; color: var(--c-g500);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px;
}
.post-related-title {
  font-size: 16px; font-weight: 600;
  color: var(--c-white-pure);
  line-height: 1.4;
}
