/* Case study detail pages — extends styles.css */

.detail-main {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3.5rem) 1.75rem 5rem;
}

.back-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 3rem;
  transition: color 0.15s ease;
}

.back-link:hover { color: var(--ink); }

.detail-header { margin-bottom: 3rem; max-width: 740px; }

.detail-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.detail-header h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 1.25rem;
}

.detail-header .subtitle {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.55em;
  letter-spacing: 0;
  margin-top: 0.4rem;
}

.detail-lead {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 56ch;
}

.detail-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin-bottom: 0;
}

.detail-sections { display: flex; flex-direction: column; }

.detail-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: 680px;
}

.detail-section h2 {
  font-size: 1.5rem;
  font-weight: 650;
  margin-bottom: 1.125rem;
}

.detail-section p {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.125rem;
}

.detail-section p:last-of-type { margin-bottom: 0; }

.detail-list {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-list li {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.detail-list li strong { color: var(--ink); font-weight: 700; }

.detail-cta { margin-top: 1.5rem; font-size: 1.0625rem; }
