/* ─── Case page back link ─────────────────────── */

.case-back {
  font-size: 0.8125rem;
  color: var(--text-3);
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
  transition: color 0.15s;
}

.case-back:hover {
  color: var(--text);
}

/* ─── Case page (Source Serif 4 layout) ────────── */

.case-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.32px;
  line-height: 1.2;
  margin-bottom: 32px;
}

.case-page-back:hover {
  opacity: 0.6;
}

.case-page-back .material-symbols-outlined {
  font-size: 20px;
}

.case-page-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.56px;
  color: var(--primary);
  max-width: 720px;
  margin-bottom: 24px;
}

.case-meta-table {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 32px;
}

.case-meta-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.case-meta-row--top {
  align-items: flex-start;
}

.case-meta-label {
  flex-shrink: 0;
  width: 180px;
  color: #737373;
}

.case-meta-value {
  flex: 1;
  color: var(--primary);
}

.case-meta-value a,
.case-section-text a,
.case-subsection-text a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--secondary);
  transition: opacity 0.15s;
}

.case-meta-value a:hover,
.case-section-text a:hover,
.case-subsection-text a:hover {
  opacity: 0.7;
}

.case-divider {
  border: none;
  border-top: 1px solid rgba(16, 14, 14, 0.15);
  max-width: 720px;
  margin: 0 0 32px;
}

.case-body {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-section:has(.case-subsections) {
  gap: 16px;
}

.case-section h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.4px;
  color: var(--primary);
}

.case-section-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-section-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--primary);
  margin: 0;
}

.case-subsections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-subsection {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-subsection-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-subsection h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.2px;
  color: var(--primary);
}

.case-subsection-text h4 {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.55;
  margin: 8px 0 0;
}

.case-subsection-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-subsection-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--primary);
  margin: 0;
}

.case-subsection-text strong {
  font-weight: 600;
}

.case-content-area {
  background: #f2f2f2;
  height: 480px;
  border-radius: 4px;
  width: 100%;
  flex-shrink: 0;
}

/* ─── Responsive (768px) ──────────────────────── */

@media (max-width: 768px) {
  .case-page-title {
    font-size: 24px;
    letter-spacing: -0.48px;
  }

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

  .case-meta-label {
    width: auto;
  }
}
