/* ============================
   전국 회생법원 타이틀
============================ */
.court-section {
  margin: 40px 0;
}

.court-title {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
}

.court-subtitle {
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}

/* ============================
   법원 카드 그리드
============================ */
.court-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ============================
   법원 카드
============================ */
.court-card {
  min-width: 0;
  padding: 24px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-sizing: border-box;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.court-card:hover {
  border-color: #dbeafe;
  transform: translateY(-6px);
  box-shadow:
    0 10px 24px
    rgba(0, 0, 0, .08);
}

.court-card h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

/* ============================
   법원 기본 정보
============================ */
.court-info-row {
  width: 100%;
  margin: 0 0 9px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  box-sizing: border-box;
}

.court-info-label {
  flex: 0 0 auto;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.court-info-value {
  flex: 1 1 auto;
  min-width: 0;
  color: #334155;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ============================
   주소 복사 + 전화번호
============================ */
.court-action-row {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

/* ============================
   주소 복사 버튼
============================ */
.copy-btn {
  flex: 0 0 auto;
  min-height: 34px;
  margin: 0;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

.copy-btn:hover {
  color: #ffffff;
  background: #ea580c;
  border-color: #ea580c;
}

.copy-btn:focus-visible {
  outline:
    2px solid
    rgba(234, 88, 12, .25);
  outline-offset: 2px;
}

.copy-btn.is-copied {
  color: #ffffff;
  background: #16a34a;
  border-color: #16a34a;
}

/* ============================
   전화번호 버튼
============================ */
.court-phone {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2684ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

.court-phone:hover {
  color: #ffffff;
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.court-phone:focus-visible {
  outline:
    2px solid
    rgba(38, 132, 255, .25);
  outline-offset: 2px;
}

.court-phone.is-disabled {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
  pointer-events: none;
}

/* ============================
   태블릿
============================ */
@media (max-width: 1024px) {
  .court-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {

  .court-main-title {
    font-size: 18px !important;
    font-weight: 700;

    line-height: 1.4;

    letter-spacing: -.3px;
  }
}

/* ============================
   모바일
============================ */
@media (max-width: 640px) {
  .court-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .court-card {
    padding: 18px;
    border-radius: 14px;
  }

  .court-card:hover {
    transform: none;
  }
}

/* ============================
   작은 모바일
   복사 + 전화번호 한 줄 유지
============================ */
@media (max-width: 480px) {
  .court-action-row {
    width: 100%;
    margin-top: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .copy-btn {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .court-phone {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 32px;
    padding: 5px 7px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
