/* DPmind 뉴스 5분야 공용 (2026-10 개편) — Quanta식 배치 + 분야별 AI 띠 이미지
   루트 .nw.nw-{분야} 아래로만 적용. 분야색은 템플릿이 --nw-accent / --nw-base 로 넘긴다. */

.nw {
  --nw-ink: #1F2227;
  --nw-body: #3B3F46;
  --nw-sub: #5B616B;
  --nw-line: #E6E3DD;
  background: #FDF8EF;  /* [redesign] 사이트 배경 한 색 */
  color: var(--nw-ink);
  font-family: 'Google Sans', 'DPmind Ko', 'Noto Sans KR', sans-serif;
  padding-bottom: 64px;
}
.nw a { color: inherit; text-decoration: none; }
.nw a:hover { color: inherit; }

/* ── 상단 띠 ── */
.nw-band {
  background-color: var(--nw-base);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #FFFFFF;
}
.nw-pharm .nw-band { background-image: linear-gradient(90deg, rgba(22, 58, 98, .94) 0%, rgba(22, 58, 98, .82) 42%, rgba(22, 58, 98, .38) 100%), url('../images/news/band-pharm.webp'); }
.nw-dental .nw-band { background-image: linear-gradient(90deg, rgba(16, 78, 66, .94) 0%, rgba(16, 78, 66, .82) 42%, rgba(16, 78, 66, .38) 100%), url('../images/news/band-dental.webp'); }
.nw-neuro .nw-band { background-image: linear-gradient(90deg, rgba(30, 20, 70, .92) 0%, rgba(30, 20, 70, .7) 42%, rgba(30, 20, 70, .2) 100%), url('../images/news/band-neuro.webp'); }
.nw-bio .nw-band { background-image: linear-gradient(90deg, rgba(96, 58, 16, .94) 0%, rgba(96, 58, 16, .82) 42%, rgba(96, 58, 16, .36) 100%), url('../images/news/band-bio.webp'); }
.nw-health .nw-band { background-image: linear-gradient(90deg, rgba(132, 52, 36, .94) 0%, rgba(132, 52, 36, .82) 42%, rgba(132, 52, 36, .36) 100%), url('../images/news/band-health.webp'); }

/* [2026-10-31] 띄 낮추기: 키커·설명 없이 제목 + 탭만. 탭은 모서리 살짝 둥근 틀 */
.nw-band-inner {
  padding: clamp(18px, 2.4vw, 28px) clamp(16px, 3vw, 48px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.nw-band-tag { margin: 2px 0 0; display: inline-block; padding: 5px 14px; border-radius: 8px; background: var(--nw-accent); color: var(--nw-base); font: 500 12.5px/1.4 'Google Sans', 'DPmind Ko', sans-serif; letter-spacing: .04em; }
.nw-band-kicker {
  font-family: 'Google Sans', 'DPmind Ko', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .82);
}
.nw-band-title {
  margin: 0;
  font-family: 'Google Sans', 'DPmind Ko', 'Noto Sans KR', sans-serif;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}
.nw-band-dek { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .9); }
.nw-updated {
  margin-left: 8px;
  font-family: 'Google Sans', 'DPmind Ko', sans-serif;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .74);
  white-space: nowrap;
}
.nw-tabs {
  align-self: stretch;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  margin-top: 12px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.nw-tabs::-webkit-scrollbar { display: none; }
.nw .nw-tabs a {
  flex: none;
  padding: 0 2px 12px;
  font-family: 'Google Sans', 'DPmind Ko', sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .74);
  border-bottom: 3px solid transparent;
}
.nw .nw-tabs a:hover { color: #FFFFFF; }
.nw .nw-tabs a.is-active { color: #FFFFFF; font-weight: 600; border-bottom-color: var(--nw-accent); }

/* ── 본문 ── */
.nw-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 48px) 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.nw-col { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; }
.nw img { display: block; width: 100%; object-fit: cover; border-radius: 4px; background: #EEF0EE; }

.nw-kicker {
  font-family: 'Google Sans', 'DPmind Ko', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nw-sub);
}
.nw-kicker span { display: inline-block; padding-bottom: 4px; border-bottom: 2px solid var(--nw-base); }

.nw-lead { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; border-bottom: 1px solid var(--nw-line); }
.nw-lead-img img { aspect-ratio: 16 / 9; }
.nw-lead .nw-kicker { margin-top: 8px; }
.nw-lead-title { margin: 0; font-size: clamp(25px, 2.6vw, 34px); font-weight: 700; line-height: 1.32; letter-spacing: -0.01em; color: var(--nw-ink); }
.nw-lead-sum { margin: 0; font-size: 17px; line-height: 1.85; color: var(--nw-body); }
.nw-more { align-self: flex-start; display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 700; }
.nw-more span { color: var(--nw-base); font-size: 20px; }

/* [2026-11-04] lead 없이 모든 기사가 같은 행 — 첫 행은 위 여백만 줄이고, 요약(.nw-row-sum--full)은 줄임 없이 전문 */
.nw-row { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--nw-line); }
.nw-col > .nw-row:first-child { padding-top: 0; }
.nw-thumb { flex: 0 0 280px; }
.nw-thumb img { aspect-ratio: 16 / 9; }
.nw-row-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.nw-row-title { margin: 0; font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; line-height: 1.45; color: var(--nw-ink); }
.nw-row-sum {
  margin: 0; font-size: 15px; line-height: 1.75; color: var(--nw-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-row-sum--full { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 16px; line-height: 1.85; }
.nw-row-link { align-self: flex-start; font-size: 14px; font-weight: 700; }
.nw-empty { padding: 60px 0; text-align: center; color: var(--nw-sub); }

.nw-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 32px; }
.nw-pn a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--nw-line); transition: border-color .15s; }
.nw-pn a:hover { border-color: #BDB8AF; }
.nw-pn a.is-next { align-items: flex-end; text-align: right; }
.nw-pn-label { font-family: 'Google Sans', 'DPmind Ko', sans-serif; font-size: 11px; letter-spacing: .08em; color: #6B6F76; }
.nw-pn-title { font-size: 19px; font-weight: 700; }

/* 오른쪽 칸 */
.nw-aside { flex: 1 1 280px; min-width: 0; border-left: 1px solid var(--nw-line); padding-left: 40px; display: flex; flex-direction: column; gap: 40px; }
.nw-k { font-family: 'Google Sans', 'DPmind Ko', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--nw-sub); }
.nw-others { display: flex; flex-direction: column; }
.nw-aside-title { margin: 6px 0 8px; font-size: 22px; font-weight: 700; color: var(--nw-ink); }
.nw-other { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dotted #CFCBC4; }
.nw-other img { width: 76px; height: 76px; flex: none; }
.nw-other-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nw-other-cat { display: inline-flex; align-items: center; gap: 6px; font-family: 'Google Sans', 'DPmind Ko', sans-serif; font-size: 11px; letter-spacing: .06em; color: var(--nw-sub); }
.nw-dot { width: 8px; height: 8px; border-radius: 4px; display: inline-block; flex: none; }
.nw-other-title {
  font-size: 14.5px; font-weight: 700; line-height: 1.5; color: var(--nw-ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-about { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #F5F6F4; }
.nw-about p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--nw-body); }

@media (max-width: 700px) {
  .nw-tabs { justify-content: flex-start; padding: 0 4px; }
  .nw-aside { border-left: none; padding-left: 0; border-top: 2px solid var(--nw-ink); padding-top: 24px; }
  .nw-row { gap: 14px; padding: 22px 0; flex-wrap: wrap; }
  .nw-thumb { flex: 1 1 100%; }
  .nw-row-body { flex: 1 1 100%; }
  .nw-row-sum { display: none; }
  .nw-row-sum--full { display: block; font-size: 15px; }   /* 폰에서도 요약 전문 — 사진은 위, 글은 아래 */
  .nw-row-link { display: inline; }
  .nw-lead-sum { font-size: 16px; }
}
