/* 건설뉴스 — 목록(/news/)과 본문(/news/<날짜>/) 공용.
   사이트 애플 톤(ink #1d1d1f, blue #0066cc, surface #f5f5f7)을 그대로 따른다.
   읽는 글이라 본문 폭을 좁게 잡고 글자를 크게 둔다. */
:root {
  --nw-ink: #1d1d1f;
  --nw-sub: #4a5260;
  --nw-mute: #6b7280;
  --nw-line: rgba(15, 23, 42, 0.1);
  --nw-blue: #0066cc;
  --nw-surface: #f5f5f7;
  --nw-max: 820px;
}

.news-list-page,
.news-article-page {
  background: #fff;
}

/* ── 머리 띠 ─────────────────────────────── */
.nw-hero {
  padding: 130px 20px 52px;
  text-align: center;
  background: linear-gradient(180deg, var(--nw-surface), #fff);
  border-bottom: 1px solid var(--nw-line);
}
.nw-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--nw-blue);
}
.nw-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--nw-ink);
}
.nw-lead {
  max-width: 660px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--nw-sub);
  word-break: keep-all;
}
.nw-lead b { color: var(--nw-ink); font-weight: 700; }

.nw-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 90px;
}
.nw-empty { color: var(--nw-mute); text-align: center; padding: 60px 0; }

/* ── 목록: 맨 위 최신 한 건 ────────────────── */
.nw-top {
  display: block;
  padding: 34px 36px 30px;
  border: 1px solid var(--nw-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.nw-top:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 102, 204, 0.35);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.11);
}
.nw-top__tag { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.nw-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--nw-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.nw-top__tag time { font-size: 14px; font-weight: 600; color: var(--nw-mute); }
.nw-top h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.03em;
  color: var(--nw-ink);
  word-break: keep-all;
}
.nw-top > p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--nw-sub);
  word-break: keep-all;
}
.nw-top__pts {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--nw-surface);
  display: grid;
  gap: 10px;
}
.nw-top__pts li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--nw-sub);
  word-break: keep-all;
}
.nw-top__pts li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nw-blue);
}
.nw-top__pts b { color: var(--nw-ink); font-weight: 700; }
.nw-top__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--nw-line);
  font-size: 14px;
  color: var(--nw-mute);
}
.nw-go { color: var(--nw-blue); font-weight: 700; }

/* ── 목록: 지난 소식 ───────────────────────── */
.nw-sub {
  margin: 56px 0 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nw-ink);
}
.nw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.nw-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 24px 20px;
  border: 1px solid var(--nw-line);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.nw-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 102, 204, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.nw-card time { font-size: 13px; font-weight: 700; color: var(--nw-blue); }
.nw-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--nw-ink);
  word-break: keep-all;
}
.nw-card p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--nw-sub);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card__foot { margin-top: auto; font-size: 13px; color: var(--nw-mute); }

/* ── 본문 ─────────────────────────────────── */
.nw-art {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 0 20px 72px;
}
.nw-art__head { padding: 154px 0 30px; border-bottom: 1px solid var(--nw-line); }
.nw-art__head .nw-eyebrow { margin-bottom: 10px; font-size: 17px; }
.nw-art__date {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--nw-mute);
}
.nw-art__head h1 {
  /* JSON title 안의 
 을 줄바꿈으로 살린다 — 큰 제목은 끊기는 자리가 읽기를 좌우한다 */
  white-space: pre-line;
  margin: 0 0 16px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.035em;
  color: var(--nw-ink);
  word-break: keep-all;
}

/* 오늘 이것만은 */
.nw-top3 {
  margin: 32px 0 8px;
  padding: 26px 28px;
  border-radius: 18px;
  background: var(--nw-surface);
  border: 1px solid var(--nw-line);
}
.nw-top3 h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nw-ink);
}
.nw-top3 ol { counter-reset: nw; display: grid; gap: 13px; }
.nw-top3 li {
  counter-increment: nw;
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--nw-sub);
  word-break: keep-all;
}
.nw-top3 li::before {
  content: counter(nw);
  position: absolute;
  left: 0;
  top: 3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--nw-blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nw-top3 b { color: var(--nw-ink); font-weight: 700; }

/* 갈래 */
.nw-grp { margin-top: 48px; }
.nw-grp__head { padding-bottom: 14px; border-bottom: 2px solid var(--nw-ink); }
.nw-grp__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--nw-ink);
}
.nw-grp__head p { margin: 7px 0 0; font-size: 14.5px; color: var(--nw-mute); word-break: keep-all; }

/* 소식 한 건 */
.nw-item { padding: 30px 0; border-bottom: 1px solid var(--nw-line); }
.nw-item.is-key {
  margin: 20px 0;
  padding: 28px 28px 24px;
  border: 1px solid rgba(0, 102, 204, 0.3);
  border-radius: 16px;
  background: rgba(0, 102, 204, 0.035);
}
.nw-flag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--nw-blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.nw-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.028em;
  color: var(--nw-ink);
  word-break: keep-all;
}
.nw-item__src { margin: 0 0 16px; font-size: 13.5px; color: var(--nw-mute); }
.nw-item__body { font-size: 16.5px; line-height: 1.82; color: var(--nw-sub); word-break: keep-all; }
.nw-item__body p { margin: 0 0 14px; }
.nw-item__body p:last-child { margin-bottom: 0; }
.nw-item__body b { color: var(--nw-ink); font-weight: 700; }
.nw-item__body ol,
.nw-item__body ul { margin: 0 0 14px; padding-left: 4px; display: grid; gap: 8px; counter-reset: nwi; }
.nw-item__body ol li { counter-increment: nwi; position: relative; padding-left: 26px; }
.nw-item__body ol li::before {
  content: counter(nwi) '.';
  position: absolute;
  left: 4px;
  font-weight: 700;
  color: var(--nw-blue);
}
.nw-item__body ul li { position: relative; padding-left: 16px; }
.nw-item__body ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nw-mute);
}

/* 실무 포인트 */
.nw-point {
  margin: 20px 0 0;
  padding: 20px 22px;
  border-radius: 14px;
  border-left: 3px solid var(--nw-blue);
  background: var(--nw-surface);
}
.nw-point__h {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--nw-blue);
}
.nw-point div { font-size: 15.5px; line-height: 1.8; color: var(--nw-sub); word-break: keep-all; }
.nw-point p { margin: 0 0 12px; }
.nw-point p:last-child { margin-bottom: 0; }
.nw-point b { color: var(--nw-ink); font-weight: 700; }

.nw-src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nw-blue);
}
.nw-src:hover { text-decoration: underline; }

/* 정리하면 */
.nw-close {
  margin-top: 52px;
  padding: 30px 32px;
  border-radius: 18px;
  background: var(--nw-ink);
  color: #fff;
}
.nw-close h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.nw-close div { font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, 0.85); word-break: keep-all; }
.nw-close p { margin: 0 0 13px; }
.nw-close p:last-child { margin-bottom: 0; }
.nw-close b { color: #fff; font-weight: 700; }

/* 싣지 않은 것 */
.nw-skip { margin-top: 28px; }
.nw-skip summary {
  cursor: pointer;
  padding: 14px 18px;
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--nw-sub);
  list-style: none;
}
.nw-skip summary::-webkit-details-marker { display: none; }
.nw-skip summary::before { content: '+ '; color: var(--nw-blue); font-weight: 800; }
.nw-skip details[open] summary::before { content: '− '; }
.nw-skip ul { margin: 14px 0 0; padding: 0 18px; display: grid; gap: 11px; }
.nw-skip li { font-size: 14.5px; line-height: 1.7; color: var(--nw-mute); word-break: keep-all; }
.nw-skip li b { color: var(--nw-sub); }

.nw-disc {
  margin: 30px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--nw-mute);
  word-break: keep-all;
}

/* 다른 날 소식 */
.nw-more { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--nw-line); }
.nw-more h2 { margin: 0 0 16px; font-size: 17px; font-weight: 800; color: var(--nw-ink); }
.nw-more ul { display: grid; gap: 10px; }
.nw-more a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 18px;
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.nw-more a:hover { border-color: rgba(0, 102, 204, 0.35); background: var(--nw-surface); }
.nw-more time { flex: none; font-size: 13px; font-weight: 700; color: var(--nw-blue); }
.nw-more span { font-size: 15px; color: var(--nw-sub); word-break: keep-all; }


/* 상단 헤더가 고정이라 머리 띠 위 여백은 건설칼럼과 같은 자리에 맞춘다.
   숫자를 줄이면 제목이 헤더에 붙어 보인다. */
@media (max-width: 900px) {
  .nw-hero { padding-top: 106px; }
  .nw-art__head { padding-top: 138px; }
}

/* ── 좁은 화면 ─────────────────────────────── */
@media (max-width: 760px) {
  .nw-hero { padding-left: 18px; padding-right: 18px; padding-bottom: 38px; }
  .nw-wrap { padding: 32px 16px 64px; }
  .nw-top { padding: 24px 20px 20px; border-radius: 16px; }
  .nw-top__pts { padding: 16px; }
  .nw-art { padding: 0 16px 60px; }
  .nw-art__head { padding-bottom: 24px; }
  /* 좁은 화면에서는 제목에 지정한 줄바꿈을 무시한다.
     폭이 좁아 어차피 한 번 더 접히는데 지정한 자리까지 겹치면
     짧은 줄이 홀로 남아 오히려 읽기 나빠진다. */
  .nw-art__head h1 { white-space: normal; }
  .nw-top3 { padding: 22px 18px; border-radius: 14px; }
  .nw-top3 li { padding-left: 30px; font-size: 15.5px; }
  .nw-item.is-key { padding: 22px 18px 20px; }
  .nw-item h3 { font-size: 18.5px; }
  .nw-item__body { font-size: 16px; }
  .nw-point { padding: 17px 18px; }
  .nw-close { padding: 24px 20px; border-radius: 14px; }
  .nw-more a { flex-direction: column; gap: 5px; }
}
