.erc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.erc-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 24px 24px 20px;
  flex: 1 1 calc(50% - 24px);
  box-sizing: border-box;
  min-width: 280px;
  min-height: 280px;
}

.erc-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.erc-card-text {
  flex: 1 1 auto;
}

.erc-ref-name{
  font-size: 1.5rem;
  color: black;
  font-weight: bold;
  margin-bottom: 5px;
}

.erc-ref-code {
  font-size: 1.2rem;
  color: black;
  font-weight: bold;
}

.erc-top-line {
  word-break: keep-all;
  color: black;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: bold;
}

.erc-desc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: #666;
  font-weight: 500;
}

.erc-desc-list li+li {
  margin-top: 2px;
}

.erc-card-logo {
  flex: 0 0 auto;
}

.erc-logo-circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  overflow: hidden;
}

.erc-logo-circle img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.erc-logo-placeholder svg {
  display: block;
}

.erc-logo-placeholder span {
  font-size: 13px;
  color: #666666;
  text-align: center;
  padding: 8px;
}

.erc-card-buttons {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.erc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
}

.erc-btn-primary {
  background: #222222;
  color: #ffffff;
}

.erc-btn-primary:hover {
  color: white;
  background: #000000;
}

.erc-btn-secondary {
  background: #f5f5f5;
  color: #444444;
}

.erc-btn-secondary:hover {
  background: #e9e9e9;
}

/* 모바일 1열 */
@media (max-width: 768px) {
  .erc-card {
    flex: 1 1 100%;
  }

  .erc-card-inner {
    text-align: center;
    flex-direction: column-reverse;
  }

  .erc-card-buttons {
    justify-content: center;
  }

  .erc-logo-circle {
    height: 60px;
    width: 60px;
  }

  .erc-card{
    min-height: auto;
  }
}