/* ================================
   CASE STUDY NAV
   ================================ */

.case-nav {
  position: sticky;
  top: 0;
  z-index: 10;

  background: var(--bg);
  border-bottom: 1px solid #e5e7eb;
}

.case-nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
}

/* Back link */
.back-link {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}




/* ================================
   CASE STUDY PAGE — FINAL STABLE
   ================================ */

.case-study {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Case-study-only nav */
.case-nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 24px;
}

.case-nav a {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}

/* Title */
#cs-title {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
}

#cs-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 24px;
}

/* Hero image */
#cs-image {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0 32px;
}

/* MARKDOWN CONTENT — TIGHT & PROFESSIONAL */

#cs-content {
  font-size: 16px;
  line-height: 1.55;
}

/* Section headings */
#cs-content h2 {
  font-size: 24px;
  margin: 22px 0 6px;
}

#cs-content h3 {
  font-size: 18px;
  margin: 16px 0 4px;
}

/* Paragraphs */
#cs-content p {
  margin: 0 0 8px;
}

/* Divider from --- */
#cs-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 16px 0;
}

/* Blockquote */
#cs-content blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  background: #f6f8f7;
  border-left: 3px solid #0b3a2a;
  font-style: italic;
}

/* Lists */
#cs-content ul {
  margin: 8px 0 12px;
  padding-left: 18px;
}

#cs-content li {
  margin-bottom: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  #cs-title {
    font-size: 32px;
  }

  .case-study {
    padding: 40px 20px;
  }
}

/* ================================
   MARKDOWN IMAGES — CONSTRAINED
   ================================ */

#cs-content img {
  display: block;
  max-width: 100%;
  height: auto;

  margin: 24px auto;       /* space above/below + center */
  border-radius: 12px;     /* matches your design system */

  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}