/* Loaded only on the two cold-structure pages by yuli-cold-structure-image.php. */
.cold-structure-visual,
.cold-structure-card {
  overflow: hidden;
  border: 1px solid rgba(221, 226, 229, .92);
  border-radius: 18px;
  background: #f1f4f4;
}

.cold-structure-card {
  display: flex;
  flex-direction: column;
}

.cold-structure-visual img,
.cold-structure-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  padding: clamp(8px, 1.25vw, 16px);
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: #eef1f1;
  box-shadow: none;
}

.cold-structure-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(221, 226, 229, .92);
  background: #fff;
}

.cold-structure-legend > span {
  position: relative;
  min-height: 48px;
  padding: 12px 14px 12px 28px;
  color: #354047;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  border-right: 1px solid rgba(221, 226, 229, .72);
  border-bottom: 1px solid rgba(221, 226, 229, .72);
}

.cold-structure-legend > span::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.cold-structure-legend > span:nth-child(2n) { border-right: 0; }
.cold-structure-legend > span:nth-child(n + 3) { border-bottom: 0; }

@media (max-width: 560px) {
  .cold-structure-legend { grid-template-columns: minmax(0, 1fr); }
  .cold-structure-legend > span {
    min-height: 44px;
    border-right: 0;
    border-bottom: 1px solid rgba(221, 226, 229, .72);
  }
  .cold-structure-legend > span:nth-child(3) { border-bottom: 1px solid rgba(221, 226, 229, .72); }
  .cold-structure-legend > span:last-child { border-bottom: 0; }
}
