/* 전국 건설 동향 — duration.css(카드·막대)와 materials.css(순위줄)를 이어 쓰고
   여기서만 쓰는 것(동네 카드, 좌우 증감 막대)만 얹는다 */

/* ── 우리 동네 ── */
.tsel {
  grid-template-columns: minmax(0, 420px);
  margin-bottom: 18px;
}
.townbox {
  background: var(--ink);
  color: #fff;
  padding: 26px 28px;
}
.tchar {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tc-i {
  font-size: 40px;
  line-height: 1;
}
.tc-t {
  font-size: 21px;
  line-height: 1.35;
  word-break: keep-all;
}
.tc-t b {
  color: var(--orange);
}
.tnums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 20px;
  background: #3a3d42;
  border: 1px solid #3a3d42;
}
.tn {
  background: var(--ink);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tn-k {
  font-size: 13px;
  color: #b9c0c8;
}
.tn-v {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.tn-r {
  font-size: 12.5px;
  color: var(--orange);
}
.twhy {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #3a3d42;
  font-size: 14px;
  line-height: 1.75;
  color: #d5d8dc;
}
.twhy a {
  color: var(--orange);
  white-space: nowrap;
}

/* ── 시도 증감 (0을 가운데 두고 좌우로) ── */
.sbar {
  display: grid;
  grid-template-columns: 60px 1fr 68px 84px;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.sb-n {
  font-size: 14.5px;
  font-weight: 500;
}
.sb-t {
  position: relative;
  height: 18px;
  background: var(--concrete);
}
.sb-z {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: var(--steel);
}
.sb-b {
  position: absolute;
  top: 3px;
  bottom: 3px;
  background: var(--orange);
}
.sb-b.dn {
  background: #1e88e5;
}
.sb-v {
  text-align: right;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--orange-deep);
}
.sb-v.dn {
  color: #1565c0;
}
.sb-c {
  text-align: right;
  font-size: 12.5px;
  color: var(--steel);
}

/* ── 동네 순위 두 줄 ── */
.rk2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.rkbox h3 {
  font-size: 17px;
  margin: 0 0 4px;
}
.rkbox p.hint {
  margin: 0 0 12px;
}
.rk2 .mrow {
  grid-template-columns: 26px 1fr 70px 46px 78px;
}
.mr-n2 {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-n2 em {
  font-style: normal;
  font-size: 12px;
  color: var(--steel);
  margin-left: 6px;
}
.mr-x {
  text-align: right;
  font-size: 12.5px;
  color: var(--steel);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .rk2 {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
@media (max-width: 720px) {
  .tnums {
    grid-template-columns: 1fr;
  }
  .tn {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .tn-v {
    font-size: 22px;
    margin-left: auto;
  }
  .tc-t {
    font-size: 17px;
  }
  .tc-i {
    font-size: 30px;
  }
  .sbar {
    grid-template-columns: 46px 1fr 60px;
    gap: 8px;
  }
  .sb-c {
    display: none;
  }
  .rk2 .mrow {
    grid-template-columns: 22px 1fr 46px;
  }
  .rk2 .mr-t,
  .rk2 .mr-x {
    display: none;
  }
}
