/* ============================================================
   BLOG POST SHARED STYLES
   Used by all individual blog post pages
   ============================================================ */

/* Base overrides for blog post pages */
body.blog-post {
  background: #080B12;
  color: #EDF1F7;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Utility classes */
.mono { font-family: 'IBM Plex Mono', monospace; }
.serif { font-family: 'Instrument Serif', Georgia, serif; }
.ms { font-family: 'Material Symbols Rounded'; font-weight: 400; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #252d3c; border-radius: 8px; border: 3px solid #080B12; }

/* Selection */
::selection { background: #22C3BE; color: #04120F; }

/* Article links */
.blog-article a {
  color: #4FB8F2;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s cubic-bezier(.2,.7,.2,1);
}
.blog-article a:hover { background-size: 100% 1px; color: #86D2F8; }

/* Article Layout (2-column: TOC + content) */
html { scroll-behavior: smooth; }

@keyframes bpFade { from { opacity: 0; } to { opacity: 1; } }

body.blog-post main {
  animation: bpFade .4s ease;
}

.article-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 32px 40px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---- Article Header ---- */
.article-hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 32px 20px;
  overflow: visible;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -60px;
  width: 520px;
  height: 340px;
  background: radial-gradient(ellipse, rgba(91,156,246,0.12), transparent 70%);
  pointer-events: none;
}
.article-hero-inner { position: relative; }

/* ─── Hero Cover Image ─── */
.article-hero-image {
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 20px auto 28px;
  padding: 0 32px;
}
.article-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.45);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13.5px;
  color: #6B7385;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.breadcrumb a { 
  color: #98A0AF; 
  text-decoration: none; 
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all .2s;
}
.breadcrumb a:hover { 
  color: #EDF1F7; 
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}
.breadcrumb .ms { font-size: 15px; opacity: .6; }
.breadcrumb .current { color: #7FB2F8; }

/* Category pill */
.category-pill {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(91,156,246,0.14);
  color: #7FB2F8;
}
/* Category color variants */
.category-pill--journal { background: rgba(46,216,167,0.14); color: #2ED8A7; }
.category-pill--analytics { background: rgba(91,156,246,0.14); color: #7FB2F8; }
.category-pill--strategy { background: rgba(155,135,245,0.14); color: #9B87F5; }
.category-pill--psychology { background: rgba(242,116,155,0.14); color: #F2749B; }
.category-pill--propfirm { background: rgba(246,180,76,0.14); color: #F6B44C; }
.category-pill--ai { background: rgba(66,214,224,0.14); color: #42D6E0; }

/* Headline */
.article-headline {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 46px;
  line-height: 1.06;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #fff 42%, #AEB6C4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 20px 0 0;
  max-width: 840px;
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  .article-headline { font-size: 32px; }
}

/* Description */
.article-description {
  font-size: 19px;
  line-height: 1.5;
  color: #98A0AF;
  max-width: 720px;
  margin: 20px 0 0;
}

/* Meta row (author + share) */
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 13px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.author-name { font-weight: 600; font-size: 14.5px; color: #EDF1F7; }
.author-date { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #6B7385; margin-top: 2px; }

.share-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
}
.share-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #5C6474;
  letter-spacing: 0.1em;
  margin-right: 2px;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #AEB6C4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}
.share-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}
.share-btn .ms { font-size: 19px; }
.share-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ---- TOC Sidebar ---- */
.toc-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 960px) {
  .toc-sidebar {
    position: static;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
}
.toc-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #5C6474;
  margin-bottom: 16px;
  padding-left: 14px;
}
.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.35;
}
.toc-nav a {
  color: #7C8598;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.toc-nav a:hover { color: #C3CAD6; }
.toc-nav a.active {
  color: #EDF1F7;
  border-left-color: #22C3BE;
  font-weight: 600;
}

/* TOC sidebar CTA */
.toc-cta {
  margin-top: 30px;
  margin-left: 14px;
  padding: 17px 18px;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(65,227,162,0.08), rgba(30,190,199,0.03));
  border: 1px solid rgba(65,227,162,0.2);
}
.toc-cta-title { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 14.5px; color: #EDF1F7; line-height: 1.25; }
.toc-cta-sub { font-size: 12px; line-height: 1.45; color: #8B94A6; margin-top: 5px; }
.toc-cta-link { margin-top: 13px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #41E3A2; text-decoration: none; }
.toc-cta-link:hover { color: #6cf0bb; }
.toc-cta-link .ms { font-size: 15px; }

/* ---- Article Body ---- */
.blog-article {
  max-width: 730px;
  font-size: 17px;
  line-height: 1.72;
  color: #C3CAD6;
}
.blog-article p { margin-bottom: 18px; }
.blog-article strong { color: #EDF1F7; font-weight: 600; }

/* Lead paragraph */
.article-lead {
  font-size: 20px;
  line-height: 1.62;
  color: #D6DCE6;
  margin-bottom: 26px;
}

/* Section dividers */
.section-block {
  scroll-margin-top: 100px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 17px;
}
.section-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #41E3A2;
  letter-spacing: 0.06em;
  flex: none;
}
.section-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Callout boxes */
.callout {
  position: relative;
  padding: 20px 24px;
  border-radius: 14px;
  margin: 24px 0;
}
.callout-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.callout p { font-size: 15.5px; line-height: 1.62; color: #C3CAD6; margin: 0; }

.callout--info {
  background: linear-gradient(120deg, rgba(79,184,242,0.09), rgba(79,184,242,0.02));
  border: 1px solid rgba(79,184,242,0.18);
  box-shadow: inset 3px 0 0 #4FB8F2;
}
.callout--info .callout-label { color: #6FB6E8; }

.callout--warn {
  background: linear-gradient(120deg, rgba(246,180,76,0.09), rgba(246,180,76,0.02));
  border: 1px solid rgba(246,180,76,0.2);
  box-shadow: inset 3px 0 0 #F6B44C;
}
.callout--warn .callout-label { color: #E8B968; }

.callout--success {
  background: linear-gradient(120deg, rgba(65,227,162,0.09), rgba(65,227,162,0.02));
  border: 1px solid rgba(65,227,162,0.2);
  box-shadow: inset 3px 0 0 #41E3A2;
}
.callout--success .callout-label { color: #41E3A2; }

/* Blockquote */
.blog-article blockquote,
.blog-blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 30px;
  border-left: 2px solid rgba(65,227,162,0.55);
}
.blog-blockquote p,
.blog-article blockquote p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  line-height: 1.25;
  font-style: italic;
  color: #EDF1F7;
  margin: 0;
  letter-spacing: -0.01em;
}
@media (max-width: 768px) {
  .blog-blockquote p,
  .blog-article blockquote p { font-size: 22px; }
}

/* Key Takeaways box */
.takeaways {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(160deg, #0E1420, #0B0F18);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 26px 28px;
  margin: 26px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.takeaways-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.takeaways-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #41E3A2;
  box-shadow: 0 0 8px #41E3A2;
}
.takeaways-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #8B94A6;
}
.takeaways-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.takeaways-list li {
  display: flex;
  gap: 15px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #C3CAD6;
}
.takeaways-list .num {
  font-family: 'IBM Plex Mono', monospace;
  color: #41E3A2;
  font-size: 12.5px;
  font-weight: 600;
  flex: none;
  padding-top: 3px;
}

/* Inline CTA */
.inline-cta {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0D111B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 36px;
  margin: 40px 0;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
}
.inline-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.inline-cta::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 300px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(65, 227, 162, 0.12), transparent 70%);
  pointer-events: none;
}
.inline-cta-inner { position: relative; z-index: 1; }
.inline-cta h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #EDF1F7;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.inline-cta p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #98A0AF;
  max-width: 480px;
}
.inline-cta-btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 12px;
  background: #41E3A2;
  color: #080B12 !important;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  background-image: none;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(65, 227, 162, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all .25s ease;
}
.inline-cta-btn:hover {
  background: #4efac6;
  color: #080B12 !important;
  background-image: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(65, 227, 162, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.inline-cta-btn .ms { font-size: 18px; }

/* FAQ Section */
.faq-section { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
  background: #0D111B;
  overflow: hidden;
}
.faq-toggle {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #EDF1F7;
}
.faq-toggle .ms {
  font-size: 22px;
  flex: none;
  transition: transform .25s;
  color: #6B7385;
}
.faq-item.is-open .faq-toggle .ms {
  transform: rotate(180deg);
  color: #41E3A2;
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease;
}
.faq-item.is-open .faq-answer {
  max-height: 300px;
  opacity: 1;
}
.faq-answer p {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #98A0AF;
  margin: 0;
}

/* ---- Related Posts ---- */
.related-section {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 24px;
}
.related-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 32px 8px;
}
.related-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}
.related-header h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.related-header a {
  font-size: 14px;
  font-weight: 600;
  color: #4FB8F2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.related-header a:hover { color: #86D2F8; }
.related-header a .ms { font-size: 17px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  display: flex;
  flex-direction: column;
  background: #0D111B;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .22s, transform .22s, box-shadow .22s;
  text-decoration: none;
}
.related-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-5px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 50px -20px rgba(0,0,0,0.75);
}
.related-card-image {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.related-card-image svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.related-card-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(8,11,18,0.72);
  backdrop-filter: blur(4px);
}
.related-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.related-card-date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #5C6474; letter-spacing: 0.05em; }
.related-card-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 17.5px;
  line-height: 1.24;
  font-weight: 600;
  color: #EDF1F7;
  margin-top: 10px;
}

/* ---- Final CTA ---- */
.final-cta {
  max-width: 1120px;
  margin: 44px auto 0;
  padding: 0 32px;
}
.final-cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0D111B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 48px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.final-cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.5;
}
.final-cta-inner::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(65, 227, 162, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.final-cta-content::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(91, 156, 246, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.final-cta-content { 
  position: relative; 
  z-index: 2;
}
.final-cta h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 30%, #98A0AF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: -0.02em;
}
.final-cta p { 
  margin: 18px auto 0; 
  font-size: 17px; 
  line-height: 1.6; 
  color: #98A0AF; 
  max-width: 520px; 
}
.final-cta-buttons { 
  display: flex; 
  gap: 16px; 
  justify-content: center; 
  flex-wrap: wrap; 
  margin-top: 36px; 
}
.final-cta .btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 12px;
  background: #41E3A2;
  color: #080B12;
  font-weight: 700;
  font-size: 15.5px;
  box-shadow: 0 4px 14px rgba(65, 227, 162, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: all .25s ease;
}
.final-cta .btn-main:hover { 
  background: #4efac6;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(65, 227, 162, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.final-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #EDF1F7;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all .2s ease;
}
.final-cta .btn-secondary:hover { 
  background: rgba(255, 255, 255, 0.08); 
  border-color: rgba(255, 255, 255, 0.2);
}
.final-cta .btn-secondary .ms { font-size: 18px; }
.blog-blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 30px;
  border-left: 2px solid rgba(65,227,162,0.55);
}
.blog-blockquote p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  line-height: 1.25;
  font-style: italic;
  color: #EDF1F7;
  letter-spacing: -0.01em;
}

.final-cta-chart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(100%) brightness(1.5);
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
}

/* Callouts and Section Headers */
.section-num {
  color: #41E3A2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.section-block {
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.callout--info {
  background: linear-gradient(120deg, rgba(79, 184, 242, 0.09), rgba(79, 184, 242, 0.02));
  border: 1px solid rgba(79, 184, 242, 0.18);
  box-shadow: inset 3px 0 0 #4FB8F2;
}
.callout--warn {
  background: linear-gradient(120deg, rgba(246, 180, 76, 0.09), rgba(246, 180, 76, 0.02));
  border: 1px solid rgba(246, 180, 76, 0.18);
  box-shadow: inset 3px 0 0 #F6B44C;
}
.callout-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
}

.takeaways {
  background: linear-gradient(160deg, #0E1420, #0B0F18);
  border: 1px solid rgba(255,255,255,0.09);
}
.takeaways-list {
  counter-reset: bp-takeaway;
}
.takeaways-list li {
  position: relative;
  list-style: none;
}
.takeaways-list li::before {
  counter-increment: bp-takeaway;
  content: counter(bp-takeaway) ".";
  color: #41E3A2;
  font-family: 'IBM Plex Mono', monospace;
  position: absolute;
  left: -20px;
}

/* ─── Mobile Optimizations ─── */
@media (max-width: 768px) {
  .article-hero {
    padding: 32px 18px 14px;
  }

  .article-hero-image {
    padding: 0 18px;
    margin: 16px auto 22px;
  }

  .article-hero-image img {
    border-radius: 14px;
  }

  .article-headline {
    font-size: 26px;
    line-height: 1.2;
  }

  .article-description {
    font-size: 16px;
    line-height: 1.55;
  }

  .article-layout {
    padding: 20px 18px 32px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toc-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 24px;
    top: auto;
  }

  .toc-sidebar details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 4px 0;
  }

  .toc-sidebar details summary {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .toc-sidebar details summary::-webkit-details-marker {
    display: none;
  }

  .toc-sidebar details summary::after {
    content: '▾';
    transition: transform 0.2s ease;
  }

  .toc-sidebar details[open] summary::after {
    transform: rotate(180deg);
  }

  .toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 10px 12px;
  }

  .toc-nav a {
    padding: 10px 14px;
    border-left: none;
    border-radius: 8px;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .toc-nav a:hover,
  .toc-nav a.active {
    background: rgba(255, 255, 255, 0.05);
  }

  .toc-cta {
    display: none;
  }

  .toc-label {
    display: none;
  }

  .blog-article {
    font-size: 16px;
    line-height: 1.72;
  }

  .article-lead {
    font-size: 17px;
    line-height: 1.6;
  }

  .section-title {
    font-size: 22px;
    margin-top: 40px;
  }

  .callout {
    padding: 16px 16px;
    border-radius: 12px;
  }

  .inline-cta {
    padding: 28px 22px;
    border-radius: 16px;
    margin: 32px 0;
  }

  .inline-cta h3 {
    font-size: 20px;
  }

  .inline-cta-btn {
    min-height: 44px;
    padding: 12px 22px;
    width: 100%;
    justify-content: center;
  }

  .blog-blockquote p {
    font-size: 18px;
  }

  .takeaways {
    padding: 20px 18px;
    border-radius: 12px;
  }

  .article-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .share-buttons {
    gap: 8px;
  }

  .share-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .final-cta {
    padding: 0 20px;
    margin: 40px auto 0;
  }

  .final-cta-inner {
    padding: 48px 24px;
    border-radius: 20px;
  }

  .final-cta h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .final-cta p {
    font-size: 16px;
    margin-top: 14px;
  }
  
  .final-cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .final-cta .btn-main,
  .final-cta .btn-secondary {
    width: 100%;
  }

  .related-posts {
    padding: 32px 18px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-card-body {
    padding: 16px;
  }

  .faq-toggle {
    padding: 16px;
    font-size: 15px;
    min-height: 44px;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 14.5px;
  }
}

/* ─── Extra small devices ─── */
@media (max-width: 380px) {
  .article-headline {
    font-size: 23px;
  }

  .article-hero {
    padding: 24px 14px 12px;
  }

  .article-layout {
    padding: 16px 14px 28px;
  }

  .section-title {
    font-size: 20px;
  }

  .final-cta-inner {
    padding: 28px 16px;
  }
}
