@charset "utf-8";

/******************************************
    근린생활시설 배치도
******************************************/
.dongho_cm {
  --dongho-cm-point: #015152;
}

.dongho_cm__panel-peak {
  --dongho-cm-point: #8b7d72;
}

.dongho_cm__tab .tab__button.is-active,
.dongho_cm__tab .tab__button[aria-selected="true"] {
  color: #015152;
  border-bottom-color: #015152;
  font-weight: 500;
}

.dongho_cm__tab .tab__button.is-active::after,
.dongho_cm__tab .tab__button[aria-selected="true"]::after {
  content: none;
}

.dongho_cm__head {
  margin-top: 70px;
  padding-bottom: 39px;
  border-bottom: 1px solid #d6d6d6;
  text-align: center;
}

.dongho_cm__head h3 {
  margin-bottom: 11px;
  color: var(--dongho-cm-point);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.dongho_cm__head p {
  color: #444;
  font-size: 20px;
}

.dongho_cm__floor {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 100px;
}

.dongho_cm__head + .dongho_cm__floor {
  margin-top: 59px;
}

.dongho_cm__img {
  flex: 0 0 63.077%;
  margin: 0;
}

.dongho_cm__table {
  flex: 1 1 0;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  text-align: center;
}

.dongho_cm__table thead th {
  height: 30px;
  padding: 0;
  background: var(--dongho-cm-point);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 0;
  color: var(--white);
  font-weight: 500;
  vertical-align: middle;
}

/* 시안 열 너비: 호 80 / 나머지 90 (440 기준) */
.dongho_cm__table col {
  width: 20.455%;
}

.dongho_cm__table .dongho_cm__col-no {
  width: 18.18%;
}

.dongho_cm__table thead tr:first-child th:first-child {
  border-left: 0;
}

.dongho_cm__table thead tr th:last-child {
  border-right: 0;
}

.dongho_cm__table thead tr:last-child th {
  border-bottom: 0;
}

.dongho_cm__table tbody tr:first-child th,
.dongho_cm__table tbody tr:first-child td {
  border-top: 0;
}

.dongho_cm__table tbody th,
.dongho_cm__table tbody td {
  height: 26px;
  padding: 0;
  border-bottom: 1px solid #e5e5e5;
  line-height: 25px;
  vertical-align: middle;
}

.dongho_cm__table tbody th {
  color: #303030;
  font-weight: 500;
}

.dongho_cm__table tbody td {
  color: #555;
}

.dongho_cm__table tbody tr:nth-child(even) {
  background: #f8f8f8;
}

@media screen and (max-width: 1024px) {
  .dongho_cm__tab {
    gap: 0;
  }

  .dongho_cm__tab .tab__button {
    min-height: calc(44 / var(--width) * var(--device-width));
    border: 1px solid #d6d6d6;
    color: #6d6d6d;
    font-size: calc(13 / var(--width) * var(--device-width));
  }

  .dongho_cm__tab .tab__button.is-active,
  .dongho_cm__tab .tab__button[aria-selected="true"] {
    background: var(--white);
    border-color: #015152;
    color: #015152;
  }

  .dongho_cm__head {
    margin-top: calc(40 / var(--width) * var(--device-width));
    padding-bottom: calc(25 / var(--width) * var(--device-width));
  }

  .dongho_cm__head h3 {
    margin-bottom: calc(10 / var(--width) * var(--device-width));
    font-size: calc(20 / var(--width) * var(--device-width));
    line-height: 1.4;
  }

  .dongho_cm__head p {
    font-size: calc(14 / var(--width) * var(--device-width));
    line-height: 1.43;
  }

  .dongho_cm__floor {
    flex-direction: column;
    align-items: stretch;
    gap: calc(20 / var(--width) * var(--device-width));
    margin-top: calc(50 / var(--width) * var(--device-width));
  }

  .dongho_cm__head + .dongho_cm__floor {
    margin-top: calc(30 / var(--width) * var(--device-width));
  }

  .dongho_cm__img {
    flex: 0 0 auto;
  }

  .dongho_cm__table {
    flex: 0 0 auto;
    width: 100%;
    font-size: calc(13 / var(--width) * var(--device-width));
  }

  .dongho_cm__table thead th {
    height: calc(28 / var(--width) * var(--device-width));
  }

  /* 시안 열 너비: 호 55 / 나머지 70 (335 기준) */
  .dongho_cm__table col {
    width: 20.895%;
  }

  .dongho_cm__table .dongho_cm__col-no {
    width: 16.42%;
  }
}
