/* 메인 지역 링크 바로 아래: 다른 페이지의 지역 안내·연락처에는 적용하지 않습니다. */
#home-branch-contacts {
  min-width: 0;
  max-width: 100%;
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid #514b40;
  color: #f6f3ed;
}
#home-branch-contacts .section-heading {
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: 0;
}
#home-branch-contacts .section-heading > div {
  min-width: 0;
  max-width: 100%;
}
#home-branch-contacts .section-heading h2 {
  color: #f6f3ed;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.045em;
  white-space: normal;
  overflow-wrap: anywhere;
}
#home-branch-contacts .eyebrow {
  color: #c9b99c;
}
#home-branch-contacts .section-description {
  color: #c3c0ba;
  line-height: 1.85;
}

/* directions-contact.css의 지점 카드만 재사용: 최신 높이·간격 수정도 통합합니다. */
#home-branch-contacts .branch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin-top: 28px;
  border-top: 0;
}
#home-branch-contacts .branch-row {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 22px 16px;
  background: #f8f6f1;
  border: 1px solid #d4ccbd;
  border-radius: 4px;
  color: #26282b;
  text-align: center;
  cursor: default;
}
#home-branch-contacts .branch-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  color: #26282b;
  font-size: 19px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
#home-branch-contacts .branch-name .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #917a59;
}
#home-branch-contacts .branch-row > a.branch-phone-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin-top: 0;
}
#home-branch-contacts .branch-row > a.branch-phone-mobile > strong {
  color: #26282b;
  font-size: 22px;
  white-space: nowrap;
  line-height: 1.5;
  overflow: visible;
  text-overflow: clip;
}
#home-branch-contacts .branch-row > a.branch-phone-mobile > span {
  justify-content: center;
  color: #786244;
  font-size: 11px;
}
#home-branch-contacts .branch-row > a.branch-phone-mobile:hover > strong {
  color: #786244;
}
/* 모바일에서 실제 tel 링크만 카드 전체로 확장합니다. */
#home-branch-contacts .branch-row > a.branch-phone-mobile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 4px;
}
#home-branch-contacts .branch-row > a.branch-phone-mobile:focus-visible {
  outline: none;
}
#home-branch-contacts .branch-row > a.branch-phone-mobile:focus-visible::after {
  outline: 2px solid #917a59;
  outline-offset: 3px;
}
#home-branch-contacts .branch-phone-desktop {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
#home-branch-contacts .branch-phone-desktop > strong {
  color: #26282b;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.5;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

/* 원본 안내표의 table/col/th/td 너비 및 열 비율은 그대로 둡니다. */
#home-branch-contacts details.original-contact {
  min-width: 0;
  max-width: 100%;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #514b40;
  color: #c3c0ba;
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
}
#home-branch-contacts details.original-contact > summary {
  color: #e1d2b6;
  font-weight: 600;
  cursor: pointer;
}
#home-branch-contacts details.original-contact > p {
  margin-top: 12px;
  color: #c3c0ba;
}
#home-branch-contacts details.original-contact table {
  color: #f6f3ed;
}
#home-branch-contacts details.original-contact th,
#home-branch-contacts details.original-contact td {
  border-color: #665f53;
}
#home-branch-contacts details.original-contact a {
  color: #e1d2b6;
}
#home-branch-contacts details.original-contact a:hover {
  color: #f6f3ed;
}

@media (max-width: 768px) {
  #home-branch-contacts {
    margin-top: 40px;
    padding-top: 32px;
  }
  #home-branch-contacts .section-heading h2 {
    font-size: clamp(20px, 4.8vw, 28px);
  }
  #home-branch-contacts .branch-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
  #home-branch-contacts .branch-row {
    min-height: 0;
    padding: 14px 8px;
    gap: 8px;
    cursor: pointer;
  }
  #home-branch-contacts .branch-name {
    display: block;
    font-size: clamp(10px, 3.1vw, 13px);
    min-height: 0;
  }
  #home-branch-contacts .branch-name .icon {
    display: none;
  }
  #home-branch-contacts .branch-row > a.branch-phone-mobile {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 0;
  }
  #home-branch-contacts .branch-row > a.branch-phone-mobile > strong {
    font-size: clamp(10px, 3vw, 14px);
    letter-spacing: -.04em;
  }
  #home-branch-contacts .branch-row > a.branch-phone-mobile > span {
    font-size: 10px;
  }
  #home-branch-contacts .branch-row > a.branch-phone-mobile > span .icon {
    display: none;
  }
  #home-branch-contacts .branch-phone-desktop {
    display: none;
  }
  #home-branch-contacts details.original-contact {
    font-size: 12px;
  }
}
