.cases-page { background: var(--jei-surface); }
.cases-layout { padding-top: 3rem; padding-bottom: 4rem; }
.case-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--jei-line); border-radius: 1.25rem; background: #fff; box-shadow: 0 12px 32px rgba(16,33,62,.06); }
.case-card-image { width: 100%; aspect-ratio: 18 / 11; object-fit: cover; }
.case-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.case-card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.case-card-title a { color: var(--jei-ink); text-decoration: none; }
.case-card-title a:hover { color: var(--jei-blue); }
.case-copy { color: #52617a; line-height: 1.85; overflow-wrap: anywhere; }
.case-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--jei-muted); font-size: .8rem; }
.case-section { padding: 2rem 0; border-bottom: 1px solid var(--jei-line); }
.case-text { margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.95; color: #42516a; }
.case-editor textarea { min-height: 160px; }
.case-image-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.case-image-choice { padding: .6rem; border: 1px solid var(--jei-line); border-radius: .8rem; font-size: .75rem; cursor: pointer; }
.case-image-choice img { display: block; width: 100%; margin-bottom: .5rem; border-radius: .5rem; }
.case-image-choice:focus-within { outline: 2px solid var(--jei-blue); }
@media (max-width: 575.98px) {
    .cases-layout { padding-top: 2rem; padding-bottom: 2.5rem; }
    .case-image-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
