/* ==========================================================================
   Component: case-study card + grid (.cm-cases / .cm-case-card)
   Image (4:3), sector tag, title, one-line result, "read the case study" link.
   ========================================================================== */

.cm-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
}

.cm-case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* The card image uses the shared .cm-media 4:3 frame (base.css). */

.cm-case-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cm-muted-2);
}

.cm-case-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: balance;
}

.cm-case-card__result {
  font-size: 16px;
  line-height: 1.5;
  color: var(--cm-muted);
}

.cm-case-card__link {
  font-weight: 600;
  font-size: 15px;
}

/* Dashed "more studies to come" tile that sits in the grid. */
.cm-case-note {
  border: 1px dashed var(--cm-paper-3);
  border-radius: var(--cm-radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
  min-height: 240px;
}

.cm-case-note__head {
  font-size: 16px;
  font-weight: 600;
  color: var(--cm-ink);
}

.cm-case-note__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cm-muted);
  max-width: 32ch;
}

/* Header row: title on the left, "view all" link on the right. */
.cm-cases-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.cm-cases-head__col {
  max-width: 600px;
}
