/* CNC manufacturing support cards: image-led, editable, and intentionally compact. */
.hhx-cnc-page .hhx-support-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2vw, 28px);
}

.hhx-cnc-page .hhx-support-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(14, 41, 76, .045);
}

.hhx-cnc-page .hhx-support-card__media,
.hhx-cnc-page .hhx-support-card__figure,
.hhx-cnc-page .hhx-support-card__placeholder {
  width: 100%;
  margin: 0;
}

.hhx-cnc-page .hhx-support-card__media { background: #e9eef3; }

.hhx-cnc-page .hhx-support-card__figure { display: block; }

.hhx-cnc-page .hhx-support-card__image,
.hhx-cnc-page .hhx-support-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.hhx-cnc-page .hhx-support-card__placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  color: #6f7c89;
  background: repeating-linear-gradient(135deg, #edf1f4 0, #edf1f4 14px, #e6ebef 14px, #e6ebef 28px);
  font: 700 12px/1.2 var(--hhx-font);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hhx-cnc-page .hhx-support-card__credit {
  margin: 0;
  padding: 8px 12px 0;
  color: #7b8794;
  background: #fff;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hhx-cnc-page .hhx-support-card__credit a { color: inherit; text-decoration: underline; }

.hhx-cnc-page .hhx-support-card__body {
  display: flex;
  min-height: 244px;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.hhx-cnc-page .hhx-support-card__number {
  display: block;
  margin-bottom: 22px;
  color: #2769b5;
  font: 700 12px/1 var(--hhx-heading);
  letter-spacing: .08em;
}

.hhx-cnc-page .hhx-support-card h3 {
  min-height: 48px;
  margin: 0 0 11px;
  color: #132239;
  font: 700 22px/1.12 var(--hhx-heading);
  letter-spacing: -.025em;
}

.hhx-cnc-page .hhx-support-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #607080;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.hhx-cnc-page .hhx-support-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
  color: #1d63b6;
  font: 700 13px/1.2 var(--hhx-font);
  text-decoration: none;
}

.hhx-cnc-page .hhx-support-card__link:hover { color: #0b427e; }

@media (max-width: 1024px) {
  .hhx-cnc-page .hhx-support-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hhx-cnc-page .hhx-support-card__body { min-height: 226px; }
}

@media (max-width: 640px) {
  .hhx-cnc-page .hhx-support-cards { grid-template-columns: 1fr; gap: 18px; }
  .hhx-cnc-page .hhx-support-card__body { min-height: 0; padding: 24px; }
  .hhx-cnc-page .hhx-support-card h3 { min-height: 0; font-size: 21px; }
}
