/* ── Project / case study page styles ── */

.cs-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.cs-back {
  display: inline-block;
  font-size: 0.82rem;
  color: #999;
  text-decoration: none;
  margin-top: 6rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.cs-back:hover {
  color: #111;
  text-decoration: none;
}

.cs-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 2.5rem;
}

.cs-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.75rem;
}

.cs-title {
  font-family: 'Bungee', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #111;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.cs-subtitle {
  font-size: 1.05rem;
  color: #777;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-tag {
  font-size: 0.72rem;
  color: #999;
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  padding: 2px 10px;
}

/* Article body */
.cs-body {
  padding-bottom: 5rem;
}

.cs-body h2 {
  font-family: 'Bungee', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #111;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

.cs-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.cs-body p {
  font-size: 0.975rem;
  color: #444;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.cs-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.cs-body li {
  font-size: 0.975rem;
  color: #444;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 0.2rem;
}

.cs-body strong {
  font-weight: 700;
  color: #222;
}

.cs-body a {
  color: #2d68f6;
  text-decoration: none;
  border-bottom: 1px solid rgba(45,104,246,0.25);
  transition: border-color 0.2s;
}
.cs-body a:hover {
  border-color: #2d68f6;
  text-decoration: none;
}

/* Code blocks */
.cs-body pre {
  border-radius: 8px;
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
}

.cs-body pre code.hljs {
  font-size: 0.78rem;
  line-height: 1.65;
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
}

.cs-body code:not(.hljs) {
  font-size: 0.82rem;
  background: #f3f3f3;
  border-radius: 4px;
  padding: 1px 5px;
  color: #333;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.cs-img-wide img,
.cs-img-inline img {
  cursor: zoom-in;
}

/* Wide image breakout */
.cs-img-wide {
  margin-left: -15rem;
  margin-right: -15rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.cs-img-wide img {
  width: 100%;
  display: block;
  border-radius: 6px;
}
.cs-img-caption {
  font-size: 0.75rem;
  color: #aaa;
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Pull quote / callout */
.cs-callout {
  border-left: 3px solid #2d68f6;
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  background: #f8faff;
  border-radius: 0 6px 6px 0;
}
.cs-callout p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* Section divider */
.cs-rule {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 2.5rem 0;
}

/* Tech stack table */
.cs-stack {
  border-top: 1px solid #ebebeb;
  margin: 1.5rem 0;
}
.cs-stack-row {
  display: flex;
  gap: 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f5f5f5;
  align-items: baseline;
}
.cs-stack-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #aaa;
  flex: 0 0 170px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cs-stack-value {
  font-size: 0.875rem;
  color: #444;
  font-weight: 300;
}

@media (max-width: 576px) {
  .cs-title {
    font-size: 1.6rem;
  }
  .cs-img-wide {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
  .cs-stack-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  .cs-stack-label {
    flex: none;
  }
}
