.ts-die-measure-card {
  --ts-blue: #005baa;
  --ts-blue-dark: #003f7d;
  --ts-orange: #ff6600;
  --ts-ink: #152033;
  --ts-muted: #607086;
  --ts-border: #d8e5f2;
  box-sizing: border-box;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid var(--ts-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ts-ink);
}

.ts-die-measure-card * {
  box-sizing: border-box;
}

.ts-die-measure-card[hidden] {
  display: none !important;
}

.ts-die-measure-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ts-die-measure-head h2 {
  margin: 0 0 4px;
  color: var(--ts-blue-dark);
  font-size: 20px;
  line-height: 1.25;
}

.ts-die-measure-head p {
  margin: 0;
  color: var(--ts-muted);
  font-size: 14px;
  line-height: 1.4;
}

.ts-die-badge {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 5px;
  background: #eef7ff;
  color: var(--ts-blue-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.ts-die-measure-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 280px;
  gap: 14px;
  align-items: center;
}

.ts-die-drawing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 284px;
  min-height: 0;
  border: 1px solid #e5eef8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ts-die-manufacturer-drawing {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 0;
  object-fit: contain;
  background: #fff;
}

.ts-die-facts {
  display: grid;
  align-content: center;
  padding: 4px 0;
}

.ts-die-fact {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid #edf3f9;
}

.ts-die-fact span,
.ts-die-fact strong {
  color: var(--ts-muted);
  font-size: 13px;
  line-height: 1.25;
}

.ts-die-fact span {
  font-weight: 700;
}

.ts-die-fact strong {
  font-weight: 800;
}

.ts-die-symbol {
  color: var(--ts-muted);
  font-weight: 900;
}

.ts-die-holder-tip {
  margin: 10px 0 0;
  color: var(--ts-muted);
  font-size: 12px;
  font-style: italic;
  line-height: 1.35;
}

.ts-die-disclaimer {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #edf3f9;
  color: var(--ts-muted);
  font-size: 12px;
  line-height: 1.45;
}

.related li.ts-die-holder-related {
  border-top: 1px solid #edf3f9;
}

.related li > a.nf:first-child {
  flex: 0 0 85px !important;
  width: 85px !important;
  min-width: 85px !important;
  height: 70px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.related li > a.nf:first-child img {
  width: auto !important;
  height: auto !important;
  max-width: 85px !important;
  max-height: 70px !important;
  object-fit: contain !important;
}

.related li > a.nf:first-child + div {
  min-height: 50px;
}

.related li.ts-die-holder-related .ts-die-holder-desc {
  margin: 2px 0 0;
  color: var(--ts-muted);
  font-size: 12px;
  line-height: 1.3;
}

.related li.ts-die-holder-related .ts-die-holder-link {
  color: var(--ts-blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 767px) {
  .ts-die-measure-card {
    margin: 12px 0 16px;
    padding: 13px;
  }

  .ts-die-measure-head,
  .ts-die-measure-grid {
    grid-template-columns: 1fr;
  }

  .ts-die-measure-head {
    display: grid;
    gap: 10px;
  }

  .ts-die-badge {
    justify-self: flex-start;
  }

  .ts-die-drawing {
    height: auto;
    min-height: 190px;
  }

  .ts-die-manufacturer-drawing {
    min-height: 190px;
  }

  .ts-die-fact {
    grid-template-columns: 124px minmax(0, 1fr);
  }

}