/* 실제 공사기간 — 표가 아니라 '눈에 들어오는 것'으로.
   ⚠️ 한국은행 통계표처럼 만들지 말 것(토니 2026-08-14).
      큰 숫자 · 그림 · 띠 순서로 읽히게 한다. */

.sect.grey {
  background: var(--concrete);
}

/* ── 놀랄 만한 것 카드 ── */
.wgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.wcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 20px 18px;
}
.w-i {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}
.w-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.02em;
}
.w-b {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--orange-deep);
  margin: 6px 0 10px;
  word-break: keep-all;
}
.w-s {
  font-size: 13.5px;
  line-height: 1.7;
  color: #3d434b;
  margin-top: auto;
}
.w-s b {
  color: var(--ink);
}

/* ── 내 조건 ── */
.mine {
  grid-template-columns: 1fr 1fr;
  max-width: 620px;
}
.minebox {
  margin-top: 18px;
  background: var(--ink);
  color: #fff;
  padding: 26px 28px;
}
.mbig {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.mb-l {
  font-size: 15px;
  color: #b9c0c8;
}
.mb-v {
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange);
}
.mb-u {
  font-size: 22px;
  font-weight: 700;
}
.mrange {
  margin-top: 12px;
  font-size: 16px;
  color: #e8e9ea;
}
.mrange b {
  color: #fff;
}
.mmeta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #3a3d42;
  font-size: 13px;
  color: #b9c0c8;
}
.mmeta b {
  color: #fff;
}
.mnone {
  background: var(--concrete);
  padding: 18px 20px;
  font-size: 14.5px;
  color: #3d434b;
}

/* ── 가로 띠 그래프 ──
   띠 = 하위25%~상위25% 구간, 세로선 = 중앙값.
   숫자만 늘어놓는 것보다 '넓게 퍼진 용도'가 한눈에 보인다. */
.dbars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dbar {
  display: grid;
  grid-template-columns: 190px 1fr 78px 70px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.db-n {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-i {
  font-style: normal;
  margin-right: 7px;
}
.db-t {
  position: relative;
  height: 22px;
  background: var(--concrete);
}
.db-band {
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: rgba(244, 88, 28, 0.32);
}
.db-mid {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-left: -1px;
  background: var(--orange-deep);
}
.db-v {
  text-align: right;
  font-size: 14px;
  white-space: nowrap;
}
.db-v b {
  font-size: 17px;
  color: var(--orange-deep);
}
.db-c {
  text-align: right;
  font-size: 12.5px;
  color: var(--steel);
  white-space: nowrap;
}

/* ── 연도 막대 ── */
.ybars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 220px;
  padding-top: 10px;
}
.ybar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.yb-v {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--steel);
}
.yb-c {
  width: 100%;
  background: var(--concrete);
  border-top: 3px solid var(--line);
}
.ybar.top .yb-c {
  background: rgba(244, 88, 28, 0.22);
  border-top-color: var(--orange);
}
.ybar.top .yb-v {
  color: var(--orange-deep);
  font-size: 17px;
}
.yb-k {
  margin-top: 8px;
  font-size: 13px;
  color: var(--steel);
}
.ybar.top .yb-k {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 1000px) {
  .wgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .wgrid {
    grid-template-columns: 1fr;
  }
  .mine {
    grid-template-columns: 1fr;
  }
  .mb-v {
    font-size: 46px;
  }
  .dbar {
    grid-template-columns: 118px 1fr 62px;
    gap: 8px;
  }
  .db-c {
    display: none;
  }
  .db-n {
    font-size: 13px;
  }
  .ybars {
    height: 170px;
    gap: 5px;
  }
  .yb-v {
    font-size: 11px;
  }
  .yb-k {
    font-size: 11px;
  }
}

/* 카드가 링크일 때 — /stats/ 에서 갈래별 입구로 쓴다 */
.wgrid.three {
  grid-template-columns: repeat(3, 1fr);
}
.wcard.lnk {
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.12s,
    transform 0.12s;
}
.wcard.lnk:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.wcard.lnk .w-b {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
@media (max-width: 900px) {
  .wgrid.three {
    grid-template-columns: 1fr;
  }
}
