@charset "utf-8";

/* ============================================================
   시공실적 페이지
   ============================================================ */

/* ---------- 상단 지표 ---------- */
.wstats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink-100); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
}
.wstat { padding: 32px 20px; text-align: center; position: relative; }
.wstat + .wstat::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 1px; background: var(--ink-100);
}
.wstat__num {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800;
  color: var(--navy-800); letter-spacing: -.03em; line-height: 1.1;
}
.wstat__num small { font-size: .45em; font-weight: 700; margin-left: 3px; color: var(--ink-500); }
.wstat__label { margin-top: 8px; font-size: 14px; color: var(--ink-500); font-weight: 500; }
.wstat__sub { margin-top: 6px; font-size: 12.5px; color: var(--ink-500); line-height: 1.5; word-break: keep-all; }

/* ---------- 필터 ---------- */
.wfilters { margin-top: 36px; display: grid; gap: 14px; }
.wfilters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wfilters__label {
  flex: none; width: 46px; font-size: 13px; font-weight: 700;
  color: var(--ink-500); letter-spacing: .04em;
}
.wfilters .filter { padding: 8px 15px; font-size: 13px; }
.wfilters .filter em {
  font-style: normal; margin-left: 5px; font-size: 11px;
  opacity: .65; font-weight: 700;
}

.wcount { margin-top: 26px; font-size: 14px; color: var(--ink-500); }
.wcount b { color: var(--navy-800); font-weight: 800; }

/* ---------- 실적 목록 ---------- */
.wlist { margin-top: 14px; border-top: 2px solid var(--navy-800); }
.wrow {
  display: grid;
  grid-template-columns: 64px 1fr 196px;
  gap: 16px; align-items: center;
  padding: 15px 12px;
  border-bottom: 1px solid var(--ink-100);
  font-size: 15px;
}
.wrow--head {
  font-size: 13px; font-weight: 700; color: var(--ink-500);
  background: var(--ink-50); padding-block: 12px;
}
.wrow:not(.wrow--head):hover { background: var(--sky-100); }
.wrow.is-hidden { display: none; }
.wrow__year { color: var(--ink-500); font-weight: 700; font-variant-numeric: tabular-nums; }
.wrow__name { color: var(--ink-900); line-height: 1.55; word-break: keep-all; }
.wrow__sector { font-size: 13px; color: var(--ink-500); }
.wrow__kinds { display: flex; flex-wrap: wrap; gap: 5px; }
.wtag {
  display: inline-block; padding: 3px 8px; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: -.01em;
  background: var(--sky-100); color: var(--navy-700); white-space: nowrap;
}
.wrow--head .wrow__kinds { display: block; }

.wempty {
  padding: 60px 20px; text-align: center; color: var(--ink-500);
  font-size: 15px; border-bottom: 1px solid var(--ink-100);
}

.wnote {
  margin-top: 26px; font-size: 13px; color: var(--ink-500); line-height: 1.85;
}
.wnote a { color: var(--navy-800); font-weight: 700; text-decoration: underline; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .wrow { grid-template-columns: 58px 1fr 176px; }
}
@media (max-width: 900px) {
  .wstats { grid-template-columns: repeat(2, 1fr); }
  .wstat:nth-child(odd)::before { display: none; }
  .wstat:nth-child(n+3) { border-top: 1px solid var(--ink-100); }
}
@media (max-width: 620px) {
  .wstat { padding: 24px 12px; }
  .wfilters__label { width: 100%; margin-bottom: 2px; }
  .wrow { grid-template-columns: 52px 1fr; gap: 10px; padding: 13px 6px; font-size: 14px; }
  .wrow__kinds { display: none; }
  .wrow--head .wrow__kinds { display: none; }
}

/* ---------- 더 보기 · 맨 위로 ---------- */
.wmore { display: block; margin: 28px auto 0; min-width: 240px; }
.wtop {
  position: fixed; right: 18px; bottom: 88px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-size: 20px;
  border: 0; cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.wtop.is-show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (min-width: 769px) { .wtop { bottom: 28px; } }

/* ---------- 목록을 불러오지 못했을 때 ----------
   목록이 /data/works.json 으로 그려지므로, 실패·준비 중일 때 자리를
   비워 두지 않고 이 문단을 대신 보여 준다. [hidden] 이 먹어야 하므로
   display 는 지정하지 않는다. */
.wfail {
  margin-top: 26px; padding: 22px 20px;
  border: 1px solid var(--ink-100); border-radius: var(--radius);
  background: var(--ink-50);
  font-size: 14.5px; color: var(--ink-700); line-height: 1.85;
}
.wfail a { margin-left: 6px; color: var(--navy-800); font-weight: 700; text-decoration: underline; }
