.wsp-family-hub {
  width: min(1220px, calc(100% - 32px));
  margin: 22px auto 26px;
  color: #111827;
  font-family: inherit;
}

.wsp-family-hub * {
  box-sizing: border-box;
}

.wsp-family-hub-inner {
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.wsp-family-hub-kicker {
  margin: 0 0 6px;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wsp-family-hub-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.wsp-family-hub-title-row h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
}

.wsp-family-hub-title-row p {
  max-width: 780px;
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
}

.wsp-family-hub-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.wsp-family-overview-grid,
.wsp-family-card-grid,
.wsp-family-model-grid,
.wsp-family-machine-grid {
  display: grid;
  gap: 12px;
}

.wsp-family-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.wsp-family-model-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.wsp-family-card-grid,
.wsp-family-machine-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wsp-family-card,
.wsp-family-link-card,
.wsp-family-model-card,
.wsp-family-note {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #f8fafc;
}

.wsp-family-link-card,
.wsp-family-model-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wsp-family-link-card:hover,
.wsp-family-link-card:focus-visible,
.wsp-family-model-card:hover,
.wsp-family-model-card:focus-visible {
  border-color: rgba(234, 88, 12, .38);
  background: #fff7ed;
  outline: none;
  text-decoration: none;
}

.wsp-family-card strong,
.wsp-family-link-card strong,
.wsp-family-model-card strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.wsp-family-card span,
.wsp-family-link-card span,
.wsp-family-model-card span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.wsp-family-section {
  margin-top: 18px;
}

.wsp-family-section h3 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
}

.wsp-family-replacement-list,
.wsp-family-consumable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wsp-family-replacement-list li,
.wsp-family-consumable-list li,
.wsp-family-replacement-list a,
.wsp-family-consumable-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #312e81;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.wsp-family-replacement-list a:hover,
.wsp-family-consumable-list a:hover,
.wsp-family-replacement-list a:focus-visible,
.wsp-family-consumable-list a:focus-visible {
  background: #fff7ed;
  color: #c2410c;
  outline: none;
  text-decoration: none;
}

.wsp-family-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wsp-family-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.wsp-family-action:hover,
.wsp-family-action:focus-visible {
  background: #c2410c;
  color: #fff;
  outline: none;
  text-decoration: none;
}

.wsp-family-note {
  margin-top: 14px;
  border-left: 4px solid #f97316;
  background: #fff7ed;
  color: #7c2d12;
}

.wsp-family-note strong {
  display: block;
  margin-bottom: 4px;
  color: #7c2d12;
}

.wsp-family-note p {
  margin: 0;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.5;
}

.wsp-family-help {
  margin-top: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #f8fafc;
}

.wsp-family-help summary {
  padding: 12px 13px;
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}

.wsp-family-help div {
  padding: 0 13px 13px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .wsp-family-hub-title-row,
  .wsp-family-overview-grid,
  .wsp-family-card-grid,
  .wsp-family-machine-grid {
    grid-template-columns: 1fr;
  }

  .wsp-family-hub-label {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .wsp-family-hub {
    width: min(100% - 20px, 1220px);
    margin-top: 14px;
  }

  .wsp-family-hub-inner {
    padding: 15px;
  }

  .wsp-family-action {
    width: 100%;
  }
}
