/* ========== Skip-link + accessibility ========== */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--navy); color: #fff;
  padding: 12px 18px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600;
  text-decoration: none; border-radius: 4px; z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 16px; }
*:focus-visible { outline: 2px solid #76a9ff; outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .nmd-post-c__rail { display: none !important; }
  .nmd-post-c__body-wrap { grid-template-columns: 1fr; padding: 0; }
  .nmd-post-c { max-width: 100%; }
  .nmd-post-c__body { color: #000; font-size: 12pt; line-height: 1.6; }
  .nmd-post-c__body a { color: #000; text-decoration: underline; }
  .nmd-post-c__featured { margin: 16px 0; aspect-ratio: auto; }
}

/* ========== Design C — NMD Brand · JOST · production ========== */
:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --navy: #1b3360;
  --navy-2: #142747;
  --navy-3: #0f1d36;
  --charcoal: #2d3748;
  --ink: #1a202c;
  --ink-2: #2d3748;
  --ink-3: #4a5568;
  --ink-4: #718096;
  --rule: #e2e8f0;
  --rule-soft: #edf2f7;
  --accent: #146ff8;
  --accent-2: #2563eb;
  --accent-soft: #ebf3ff;
  --tint: #f7fafc;
  --shadow: 0 1px 2px rgba(26, 32, 44, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 32, 44, 0.06);
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}


.demo-bar strong { color: #76a9ff; font-weight: 500; }
.demo-bar a { color: rgba(255,255,255,0.7); text-decoration: none; margin-left: 24px; transition: color .15s; }
.demo-bar a:hover { color: #76a9ff; }

/* ===== HERO ===== */
.nmd-post-c__hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(15, 29, 54, 0.92) 0%, rgba(27, 51, 96, 0.88) 100%),
    radial-gradient(circle at 20% 30%, rgba(20, 111, 248, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(118, 169, 255, 0.2) 0%, transparent 50%),
    var(--navy-3);
  color: #ffffff;
  padding: 96px 32px 80px;
  overflow: hidden;
}
.nmd-post-c__hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.nmd-post-c__hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: end;
}
.nmd-post-c__hero-main { min-width: 0; }
.nmd-post-c__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: #76a9ff;
  background: rgba(20, 111, 248, 0.12);
  border: 1px solid rgba(20, 111, 248, 0.35);
  padding: 6px 14px;
  border-radius: 4px;
  margin: 0 0 28px;
}
.nmd-post-c__eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(20, 111, 248, 0.2);
}
.nmd-post-c__title {
  font-family: 'Jost', sans-serif !important;
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #ffffff;
  text-wrap: balance;
}
.nmd-post-c__dek {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 40px;
  max-width: 720px;
}
.nmd-post-c__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.nmd-post-c__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #146ff8, #6098ff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Jost', sans-serif; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.nmd-post-c__byline { display: flex; flex-direction: column; gap: 2px; }
.nmd-post-c__byline strong {
  color: #ffffff; font-weight: 600; font-size: 14px;
}
.nmd-post-c__byline span {
  font-size: 12px; color: rgba(255,255,255,0.6);
}
.nmd-post-c__divider {
  width: 1px; height: 24px;
  background: rgba(255,255,255,0.15);
}
.nmd-post-c__meta-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}

/* Hero stat card */
.nmd-post-c__hero-stats {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
}
.nmd-post-c__hero-stats-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #76a9ff;
  margin: 0 0 14px;
}
.nmd-post-c__hero-stat {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nmd-post-c__hero-stat:last-child { border-bottom: 0; }
.nmd-post-c__hero-stat-val {
  font-size: 22px; font-weight: 600; color: #ffffff;
}
.nmd-post-c__hero-stat-lbl {
  font-size: 10px; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* Featured image strip */
.nmd-post-c__featured {
  position: relative;
  margin: -40px 32px 0;
  max-width: 1180px;
  margin-left: auto; margin-right: auto;
  aspect-ratio: 21 / 9;
  background:
    linear-gradient(180deg, transparent 50%, rgba(15,29,54,0.05) 100%),
    radial-gradient(circle at 30% 50%, rgba(20, 111, 248, 0.6) 0%, transparent 45%),
    radial-gradient(circle at 75% 35%, #f59e0b 0%, transparent 35%),
    linear-gradient(135deg, #1f2937, #0f1d36);
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.nmd-post-c__featured::after {
  content: "Featured Image · 21:9 banner";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* Body wrapper */
.nmd-post-c__body-wrap {
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 80px;
  align-items: start;
}

/* Body */
.nmd-post-c__main { min-width: 0; }
.nmd-post-c__body {
  font-family: 'Jost', sans-serif !important;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-2);
  font-weight: 400;
}
.nmd-post-c__body > * + * { margin-top: 1.6em; }
.nmd-post-c__body p { margin: 0; }
.nmd-post-c__body p strong { font-weight: 600; color: var(--ink); }
.nmd-post-c__body p em { font-style: italic; }
.nmd-post-c__body p a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 111, 248, 0.3);
  transition: border-color .15s;
}
.nmd-post-c__body p a:hover { border-bottom-color: var(--accent); }

/* Lead paragraph */
.nmd-post-c__body > p:first-of-type {
  font-size: 19px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
}

/* H2 */
.nmd-post-c__body h2 {
  font-family: 'Jost', sans-serif !important;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.4em 0 0.5em;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 12px;
}
.nmd-post-c__body h2::before {
  content: "";
  display: inline-block;
  width: 4px; height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

/* H3 */
.nmd-post-c__body h3 {
  font-family: 'Jost', sans-serif !important;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  margin: 2em 0 0.4em;
  color: var(--ink);
}

/* Blockquote — dark card with huge quote */
.nmd-post-c__body blockquote {
  position: relative;
  margin: 2.4em 0;
  padding: 36px 36px 36px 88px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #ffffff;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.nmd-post-c__body blockquote::before {
  content: "\201C";
  position: absolute;
  top: -8px; left: 24px;
  font-family: 'Jost', sans-serif;
  font-size: 96px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.nmd-post-c__body blockquote p {
  margin: 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.95);
}
.nmd-post-c__body blockquote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #76a9ff;
}
.nmd-post-c__body blockquote cite::before { content: "→ "; }

/* Callout — blue bordered, eyebrow tag */
.nmd-post-c__callout {
  margin: 2.4em 0;
  padding: 28px 32px;
  background: var(--accent-soft);
  border: 1px solid rgba(20, 111, 248, 0.18);
  border-radius: 8px;
  position: relative;
}
.nmd-post-c__callout-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.nmd-post-c__callout-tag::before {
  content: "▍";
  color: var(--accent);
}
.nmd-post-c__callout-title {
  font-family: 'Jost', sans-serif !important;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nmd-post-c__callout-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0;
}

/* Lists */
.nmd-post-c__body ul,
.nmd-post-c__body ol {
  padding-left: 0;
  list-style: none;
  margin: 1.6em 0;
}
.nmd-post-c__body ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.nmd-post-c__body ul li::before {
  content: "";
  position: absolute; left: 4px; top: 0.7em;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 1px;
}
.nmd-post-c__body ol { counter-reset: list-counter; }
.nmd-post-c__body ol li {
  position: relative;
  padding-left: 40px;
  counter-increment: list-counter;
  margin-bottom: 12px;
}
.nmd-post-c__body ol li::before {
  content: counter(list-counter);
  position: absolute; left: 0; top: 4px;
  width: 26px; height: 26px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
}

/* Inline image */
.nmd-post-c__body figure { margin: 2.4em 0; }
.nmd-post-c__body figure img {
  width: 100%; display: block; border-radius: 8px;
  border: 1px solid var(--rule);
}
.nmd-post-c__body figure figcaption {
  font-size: 13px; color: var(--ink-3);
  margin-top: 12px; text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.04em;
}

/* Author bio — premium card */
.nmd-post-c__author {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.nmd-post-c__author-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #146ff8, #6098ff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Jost', sans-serif; font-weight: 700; font-size: 22px;
  flex-shrink: 0;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
}
.nmd-post-c__author-meta strong {
  font-size: 16px; font-weight: 700; color: var(--ink); display: block;
  letter-spacing: -0.005em;
}
.nmd-post-c__author-meta small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent);
  display: block; margin: 2px 0 8px;
  letter-spacing: 0.06em;
}
.nmd-post-c__author-meta p {
  font-size: 14px; line-height: 1.55; color: var(--ink-3); margin: 0;
}
.nmd-post-c__author-stat {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}
.nmd-post-c__author-stat-val {
  font-size: 20px; font-weight: 700; color: var(--navy); display: block;
  letter-spacing: -0.01em;
}
.nmd-post-c__author-stat-lbl {
  font-size: 9px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.12em;
}

/* Tags */
.nmd-post-c__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.nmd-post-c__tags-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); margin-right: 8px;
  align-self: center;
}
.nmd-post-c__tags span {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-3);
  transition: all .15s;
}
.nmd-post-c__tags span:hover { border-color: var(--accent); color: var(--accent); }

/* Sticky right rail */
.nmd-post-c__rail { position: sticky; top: 80px; align-self: start; }
.nmd-post-c__rail-section { margin-bottom: 32px; }
.nmd-post-c__rail-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.nmd-post-c__toc { list-style: none; padding: 0; margin: 0; }
.nmd-post-c__toc li { margin-bottom: 0; }
.nmd-post-c__toc a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 0;
  font-size: 13px; line-height: 1.45;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px dashed var(--rule-soft);
  transition: color .15s;
}
.nmd-post-c__toc li:last-child a { border-bottom: 0; }
.nmd-post-c__toc a:hover { color: var(--accent); }
.nmd-post-c__toc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nmd-post-c__related {
  display: flex; flex-direction: column; gap: 16px;
}
.nmd-post-c__related-item {
  display: block; text-decoration: none;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: all .15s;
}
.nmd-post-c__related-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nmd-post-c__related-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  border-radius: 4px;
  margin-bottom: 12px;
}
.nmd-post-c__related-item strong {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink); line-height: 1.35;
  margin-bottom: 4px;
}
.nmd-post-c__related-item small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--ink-4);
  letter-spacing: 0.05em; text-transform: uppercase;
}

.nmd-post-c__cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #ffffff;
  padding: 28px;
  border-radius: 8px;
}
.nmd-post-c__cta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #76a9ff; margin: 0 0 10px;
}
.nmd-post-c__cta h4 {
  font-family: 'Jost', sans-serif !important;
  font-weight: 700; font-size: 18px;
  line-height: 1.35; margin: 0 0 10px;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.nmd-post-c__cta p {
  font-size: 13px; line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0 0 18px;
}
.nmd-post-c__cta a {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--navy-3);
  background: #ffffff;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 4px;
  transition: all .15s;
}
.nmd-post-c__cta a:hover { background: var(--accent); color: #ffffff; }

/* Responsive */
@media (max-width: 1024px) {
  .nmd-post-c__hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .nmd-post-c__hero-stats { max-width: 320px; }
  .nmd-post-c__body-wrap { grid-template-columns: 1fr; gap: 48px; padding: 0 20px 64px; }
  .nmd-post-c__rail { position: static; }
  .nmd-post-c__featured { margin: -32px 20px 0; }
  .nmd-post-c__hero { padding: 64px 20px 56px; }
  .nmd-post-c__author { grid-template-columns: 56px 1fr; gap: 16px; }
  .nmd-post-c__author-stat { display: none; }
  .nmd-post-c__author-avatar { width: 56px; height: 56px; font-size: 18px; }
}

/* === NEW Hero (Style 2 v3 - Floating Stat + Grid Bg + Image Overflow) === */
:root {
  --navy: #1b3360;
  --accent: #146ff8;
  --ink: #1a202c;
  --ink-3: #4a5568;
  --rule: #e2e8f0;
}
.nmd-hero-overlay {
  position: relative;
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, rgba(27, 51, 96, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 51, 96, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  padding: 24px 20px 0;
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  overflow: visible;
}
.nmd-hero-overlay__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: end;
  position: relative;
}
.nmd-hero-overlay__body { padding-bottom: 24px; }
.nmd-hero-overlay__chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.nmd-hero-overlay__chip {
  background: #ebf3ff; color: var(--accent);
  padding: 5px 12px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.nmd-hero-overlay__chip--ghost {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  border: 1px solid var(--rule); color: var(--ink-3);
}
.nmd-hero-overlay__title {
  font-family: 'Jost', sans-serif; font-weight: 700;
  font-size: clamp(30px, 3.8vw, 50px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 18px; color: var(--navy);
}
.nmd-hero-overlay__dek { font-size: 16px; line-height: 1.55; color: var(--ink-3); margin: 0 0 22px; font-weight: 300; }
.nmd-hero-overlay__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-3);
  padding-top: 18px; border-top: 1px solid var(--rule);
}
.nmd-hero-overlay__avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nmd-hero-overlay__byline strong { color: var(--ink); font-weight: 600; display: block; font-size: 13px; }
.nmd-hero-overlay__meta-time { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.05em; display: block; margin-top: 1px; }

.nmd-hero-overlay__media-wrap { position: relative; }
.nmd-hero-overlay__media {
  position: relative;
  z-index: 3;
  aspect-ratio: 5 / 4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 70px -28px rgba(15, 29, 54, 0.55);
  transform: translateY(10%);
}
.nmd-hero-overlay__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nmd-hero-overlay__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 29, 54, 0.55) 100%);
  pointer-events: none;
}
.nmd-hero-overlay__stat-card {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
  border-radius: 10px; padding: 14px 18px; z-index: 4;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
}
.nmd-hero-overlay__stat-val { font-family: 'Jost', sans-serif; font-weight: 700; font-size: 28px; color: var(--navy); line-height: 1; }
.nmd-hero-overlay__stat-lbl { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.nmd-hero-overlay__stat-cta {
  background: var(--navy); color: #fff;
  padding: 8px 14px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
}

/* === NEW Rail TOC (populated list) === */
.nmd-post-c__rail-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rail-toc;
}
.nmd-post-c__rail-toc li {
  counter-increment: rail-toc;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.nmd-post-c__rail-toc li:last-child { border-bottom: none; }
.nmd-post-c__rail-toc li::before {
  content: counter(rail-toc, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  padding-top: 3px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.nmd-post-c__rail-toc a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.nmd-post-c__rail-toc a:hover { color: var(--accent); }

/* === Hero spacing in body-wrap (clear image overflow) === */
/* === Body wrap 2-column layout (forced via !important to override kit overrides) === */
.nmd-post-c__body-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 80px !important;
  align-items: start !important;
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 24px 32px 80px !important;
  position: relative;
}
.nmd-post-c__main { min-width: 0; }
.nmd-post-c__rail { position: relative; z-index: 1; }

/* === H2/H3 typography + 15px less top margin on h2 === */
.nmd-post-c__body h2 {
  font-family: 'Jost', sans-serif !important;
  font-weight: 700 !important;
  font-size: 28px !important;
  line-height: 1.3 !important;
  margin: calc(2em - 15px) 0 0.5em !important;
  color: var(--navy) !important;
}
.nmd-post-c__body h3 {
  font-family: 'Jost', sans-serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  margin: 1.6em 0 0.5em !important;
  color: var(--navy) !important;
}

@media (max-width: 900px) {
  .nmd-hero-overlay__grid { grid-template-columns: 1fr; gap: 32px; }
  .nmd-hero-overlay__media { transform: translateY(0); margin-bottom: 16px; }
}


/* === Normalize first paragraph to match the rest of the body === */
.nmd-post-c__body p:first-of-type {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}


/* === Money lime-green separator line at hero bottom (behind image) === */
.nmd-hero-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: #84CC16;
  z-index: 1; /* behind the image (z-index 3) */
  pointer-events: none;
}


/* === Hero section top alignment (chips at the red-line position) ===
   Original grid has `align-items: end` so left content aligns to bottom
   of the row (which is tall because of the right-column image's
   translateY(10%)). That pushes the chips ~140px below the section top.
   Override on the LEFT column only — body align-self:start + a
   positive margin-top so chips land at the section_top + ~90px line
   (the user's red-line marker in the screenshot). Right column stays
   in `end` position so the media-image translateY overflow still works. */
.nmd-hero-overlay__body {
  align-self: start !important;
  margin-top: 66px !important;
}
