/* ═══════════════ 소식 · 소식 상세 — 내 회원 · 사용 통계 · 크레딧 · 가이드와 같은 톤 ═══════════════
   모든 클래스는 nw- 접두사 + .nw2 스코프 — style.css / landing.css 의 전역 규칙에 지지 않도록 한다. */
.nw2 {
    --nw-accent: #b84a35; --nw-deep: #a8472f; --nw-soft: #fcf0ea;
    --nw-ink: #242b33; --nw-muted: #5f6872; --nw-sub: #66707a; --nw-line: #d3d8de; --nw-card: #e9ebee; --nw-dark: #29313a;
    background: #fff; color: var(--nw-ink);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    padding: 48px 0 96px; min-height: 60vh;
}
.nw2, .nw2 * { box-sizing: border-box; }
.nw2 a { color: inherit; text-decoration: none; }
.nw2 button { font-family: inherit; cursor: pointer; }
.nw2 .nw-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 목록 머리 */
.nw2 .nw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.nw2 .nw-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.3; }
.nw2 .nw-head p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--nw-muted); }
.nw2 .nw-head .cnt { font-size: 14px; color: var(--nw-sub); white-space: nowrap; }
.nw2 .nw-head .cnt b { color: var(--nw-ink); }

/* 커버 · 날짜 · NEW */
.nw2 .nw-cv { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #f6f1ec; }
.nw2 .nw-meta { display: flex; align-items: center; gap: 8px; }
.nw2 .nw-dt { font-size: 13px; font-weight: 600; color: var(--nw-sub); font-variant-numeric: tabular-nums; }
.nw2 .nw-new { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--nw-soft); color: var(--nw-deep); font-size: 11px; font-weight: 800; letter-spacing: 0.03em; }

/* 최신 글(첫 쪽) · 카드 */
.nw2 .nw-ft { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-top: 28px; border: 1px solid var(--nw-card); border-radius: 8px; overflow: hidden; background: #fff; }
.nw2 .nw-ft:hover, .nw2 .nw-cd:hover { border-color: var(--nw-line); }
.nw2 .nw-ft .nw-cv { height: 100%; aspect-ratio: auto; }
.nw2 .nw-ft .bd { display: flex; flex-direction: column; justify-content: center; padding: 36px 40px; min-width: 0; }
.nw2 .nw-ft h2 { margin: 12px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.38; word-break: keep-all; overflow-wrap: anywhere; }
.nw2 .nw-ft p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--nw-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.nw2 .nw-ft .go { margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--nw-deep); }
.nw2 .nw-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.nw2 .nw-head + .nw-g { margin-top: 28px; }
.nw2 .nw-cd { display: flex; flex-direction: column; border: 1px solid var(--nw-card); border-radius: 8px; overflow: hidden; background: #fff; }
.nw2 .nw-cd .bd { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 20px 22px 24px; }
.nw2 .nw-cd h3 { margin: 10px 0 0; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw2 .nw-cd p { margin: 8px 0 0; min-height: 44px; font-size: 14px; line-height: 1.6; color: var(--nw-muted); word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw2 a:focus-visible, .nw2 button:focus-visible { outline: 2px solid var(--nw-accent); outline-offset: 2px; }

/* 페이지 이동 */
.nw2 .nw-pg { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.nw2 .nw-pg > * { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--nw-line); border-radius: 4px; background: #fff; font-size: 14px; font-weight: 600; color: #414952; }
.nw2 .nw-pg a:hover { background: #f5f6f7; }
.nw2 .nw-pg .on { background: var(--nw-dark); border-color: var(--nw-dark); color: #fff; font-weight: 800; }
.nw2 .nw-pg .dis { color: #b3bac2; background: #f7f8f9; }
.nw2 .nw-pg .el { border: 0; background: none; min-width: 20px; padding: 0; color: var(--nw-sub); }
.nw2 .nw-pg .mid { display: none; border: 0; background: none; min-width: 0; color: var(--nw-muted); }

/* 빈 상태 · 없는 글 */
.nw2 .nw-st { max-width: 520px; margin: 64px auto 0; padding: 48px 32px; text-align: center; border: 1px solid var(--nw-card); border-radius: 8px; background: #fff; }
.nw2 .nw-head + .nw-st { margin-top: 40px; }
.nw2 .nw-st .ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #f3f5f7; color: var(--nw-sub); }
.nw2 .nw-st h1, .nw2 .nw-st h2 { margin: 20px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -0.035em; }
.nw2 .nw-st p { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--nw-muted); word-break: keep-all; }
.nw2 .nw-st .eb { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.nw2 .nw-st .eb a { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 4px; font-size: 15px; font-weight: 700; }
.nw2 .nw-st .eb .dk { background: var(--nw-dark); color: #fff; }
.nw2 .nw-st .eb .dk:hover { background: #1f252c; }
.nw2 .nw-st .eb .ln { border: 1px solid #414952; color: var(--nw-ink); background: #fff; }

/* 상세 */
.nw2 .nw-art { max-width: 760px; margin: 0 auto; }
.nw2 .nw-bc { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--nw-sub); }
.nw2 .nw-bc a:hover { color: var(--nw-ink); text-decoration: underline; }
.nw2 .nw-bc svg { flex: none; }
.nw2 .nw-bc b { min-width: 0; max-width: 420px; color: var(--nw-ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw2 .nw-art h1 { margin: 20px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.38; word-break: keep-all; overflow-wrap: anywhere; }
.nw2 .nw-art .nw-meta { margin-top: 16px; }
.nw2 .nw-lead { margin: 20px 0 0; font-size: 18px; line-height: 1.7; color: #414952; word-break: keep-all; }
.nw2 .nw-cover { margin-top: 32px; border-radius: 8px; aspect-ratio: auto; object-fit: contain; }  /* 허브가 보낸 커버는 비율대로 전부 보여 준다 */
.nw2 .nw-cover.def { aspect-ratio: 16 / 9; object-fit: cover; }  /* 기본 이미지만 16:9 로 맞춘다 */

.nw2 .nw-body { margin-top: 36px; font-size: 16px; line-height: 1.85; color: var(--nw-ink); word-break: keep-all; overflow-wrap: break-word; }
.nw2 .nw-body > :first-child { margin-top: 0; }
.nw2 .nw-body p { margin: 0 0 18px; }
.nw2 .nw-body h1, .nw2 .nw-body h2 { margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid #eef0f3; font-size: 22px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.4; }
.nw2 .nw-body h3, .nw2 .nw-body h4 { margin: 32px 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.45; }
.nw2 .nw-body ul, .nw2 .nw-body ol { margin: 0 0 18px; padding-left: 22px; }
.nw2 .nw-body ul { list-style: disc; } .nw2 .nw-body ol { list-style: decimal; }
.nw2 .nw-body li { margin-bottom: 6px; }
.nw2 .nw-body a { color: var(--nw-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nw2 .nw-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.nw2 .nw-body hr { margin: 32px 0; border: 0; border-top: 1px solid #eef0f3; }
.nw2 .nw-body blockquote { margin: 20px 0 24px; padding: 4px 0 4px 18px; border-left: 3px solid #e8a29b; color: #414952; }
.nw2 .nw-body code { padding: 2px 6px; border-radius: 4px; background: #f3f5f7; font-family: Consolas, 'D2Coding', monospace; font-size: 0.9em; color: var(--nw-ink); }
.nw2 .nw-body pre { margin: 20px 0 24px; padding: 16px 20px; border-radius: 8px; background: #1f252c; color: #e4e8ec; font-family: Consolas, 'D2Coding', monospace; font-size: 13.5px; line-height: 1.75; overflow-x: auto; white-space: pre; scrollbar-width: thin; scrollbar-color: #3a444d transparent; }
.nw2 .nw-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

/* 표 — 스크롤바는 숨기고, 옆으로 넘어가는 표에는 '밀어서 보기' 신호를 보여 준다 (JS 가 .nw-tbx 로 감쌈) */
.nw2 .nw-tbx { position: relative; margin: 20px 0 24px; border: 1px solid var(--nw-card); border-radius: 8px; overflow: hidden; }
.nw2 .nw-tbw { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.nw2 .nw-tbw::-webkit-scrollbar { display: none; }
.nw2 .nw-body table { width: 100%; min-width: 480px; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.6; display: table; }
.nw2 .nw-body th, .nw2 .nw-body td { padding: 12px 16px; border: 0; border-top: 1px solid #eef0f3; text-align: left; vertical-align: top; color: var(--nw-ink); text-transform: none; letter-spacing: 0; background: transparent; min-width: 0; }
.nw2 .nw-body th { border-top: 0; background: #f7f8f9; font-size: 14px; font-weight: 650; color: var(--nw-muted); white-space: nowrap; }
.nw2 .nw-body tbody tr:hover td { background: transparent; }
.nw2 .nw-hint { position: absolute; top: 0; right: 0; bottom: 0; width: 120px; display: none; align-items: center; justify-content: flex-end; padding-right: 10px; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 70%); opacity: 1; transition: opacity 0.25s; }
.nw2 .nw-tbx.can .nw-hint { display: flex; }
.nw2 .nw-tbx.end .nw-hint { opacity: 0; }
.nw2 .nw-hint span { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 2px; height: 28px; padding: 0 10px 0 12px; border-radius: 14px; background: var(--nw-dark); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2); }
.nw2 .nw-tbx.can:not(.seen) .nw-hint span { animation: nw-nudge 1.1s ease-in-out 4; }
@keyframes nw-nudge { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(-8px); opacity: 0.55; } }

.nw2 .nw-act { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #eef0f3; }
.nw2 .nw-act .b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 20px; border: 1px solid #414952; border-radius: 4px; background: #fff; font-size: 15px; font-weight: 700; color: var(--nw-ink); }
.nw2 .nw-act .b:hover { background: #f5f6f7; }
.nw2 .nw-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.nw2 .nw-pn a { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px; border: 1px solid var(--nw-line); border-radius: 8px; background: #fff; }
.nw2 .nw-pn a:hover { background: #f5f6f7; }
.nw2 .nw-pn .nx { grid-column: 2; text-align: right; }
.nw2 .nw-pn small { font-size: 12px; font-weight: 600; color: #7a838d; }
.nw2 .nw-pn b { font-size: 15px; font-weight: 800; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nw-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1400; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 6px; background: #29313a; color: #fff; font: 600 14px/1.4 "Pretendard Variable", Pretendard, system-ui, sans-serif; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity 0.18s, transform 0.18s; }
.nw-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
    .nw2 .nw-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .nw2 { padding: 28px 0 64px; }
    .nw2 .nw-wrap { padding: 0 16px; }
    .nw2 .nw-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .nw2 .nw-head h1 { font-size: 24px; }
    .nw2 .nw-head p { font-size: 14px; }
    .nw2 .nw-ft { grid-template-columns: 1fr; margin-top: 20px; }
    .nw2 .nw-ft .nw-cv { height: auto; aspect-ratio: 16 / 9; }
    .nw2 .nw-ft .bd { padding: 20px 18px 22px; }
    .nw2 .nw-ft h2 { font-size: 20px; }
    .nw2 .nw-ft p { font-size: 14px; }
    .nw2 .nw-g { display: block; margin-top: 8px; }
    .nw2 .nw-head + .nw-g { margin-top: 16px; }
    .nw2 .nw-cd { display: grid; grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "bd cv"; column-gap: 14px; align-items: start; padding: 18px 0; border: 0; border-bottom: 1px solid #eef0f3; border-radius: 0; background: transparent; overflow: visible; }
    .nw2 .nw-cd:hover { border-color: #eef0f3; }
    .nw2 .nw-cd .nw-cv { grid-area: cv; width: 96px; height: 72px; aspect-ratio: auto; border-radius: 6px; }
    .nw2 .nw-cd .bd { grid-area: bd; padding: 0; }
    .nw2 .nw-cd h3 { margin-top: 6px; font-size: 16px; }
    .nw2 .nw-cd p { margin-top: 4px; min-height: 0; font-size: 13px; line-height: 1.55; -webkit-line-clamp: 1; }
    .nw2 .nw-cd p:empty { display: none; }
    .nw2 .nw-pg { margin-top: 28px; }
    .nw2 .nw-pg > * { min-width: 44px; height: 44px; }
    .nw2 .nw-pg .num, .nw2 .nw-pg .el { display: none; }
    .nw2 .nw-pg .mid { display: inline-flex; }
    .nw2 .nw-st { margin-top: 32px; padding: 36px 20px; }
    .nw2 .nw-st .eb { flex-direction: column; }
    .nw2 .nw-art h1 { font-size: 24px; margin-top: 16px; }
    .nw2 .nw-bc b { max-width: 200px; }
    .nw2 .nw-lead { font-size: 16px; margin-top: 16px; }
    .nw2 .nw-cover { margin-top: 24px; }
    .nw2 .nw-body { margin-top: 28px; font-size: 15.5px; }
    .nw2 .nw-body h1, .nw2 .nw-body h2 { font-size: 19px; margin-top: 36px; padding-top: 24px; }
    .nw2 .nw-body pre { font-size: 12.5px; padding: 14px 16px; }
    .nw2 .nw-act { flex-direction: column; margin-top: 36px; }
    .nw2 .nw-act .b { width: 100%; }
    .nw2 .nw-pn { grid-template-columns: 1fr; }
    .nw2 .nw-pn .nx { grid-column: auto; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .nw2 .nw-tbx.can:not(.seen) .nw-hint span { animation: none; }
    .nw-toast, .nw2 .nw-hint { transition: none; }
}

/* 글 하단 공통 안내(카드) — 버튼 글자는 상하 가운데 */
.nw2 .nw-cta { margin-top: 48px; padding: 28px 32px 30px; border: 1px solid #e9ebee; border-radius: 8px; background: #fff; }
.nw2 .nw-cta .tp { display: flex; align-items: flex-start; gap: 16px; }
.nw2 .nw-cta .ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: #fcf0ea; }
.nw2 .nw-cta .ic svg { width: 30px; height: 23px; }
.nw2 .nw-cta h2 { margin: 0; padding: 0; border: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.45; word-break: keep-all; }
.nw2 .nw-cta p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: #5f6872; word-break: keep-all; }
.nw2 .nw-cta .bt { display: flex; gap: 8px; margin-top: 20px; }
.nw2 .nw-cta .bt a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 48px; padding: 0 22px; border-radius: 4px; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; }
.nw2 .nw-cta .bt .dk { background: #29313a; color: #fff; border: 1px solid #29313a; }
.nw2 .nw-cta .bt .dk:hover { background: #1f252c; }
.nw2 .nw-cta .bt .ln { border: 1px solid #414952; background: #fff; color: #242b33; }
.nw2 .nw-cta .bt .ln:hover { background: #f5f6f7; }
.nw2 .nw-cta .bt a:focus-visible { outline: 2px solid #b84a35; outline-offset: 2px; }
.nw2 .nw-cta .nt { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: #7a838d; }
@media (max-width: 640px) {
    .nw2 .nw-cta { margin-top: 36px; padding: 22px 20px 24px; }
    .nw2 .nw-cta .tp { gap: 12px; }
    .nw2 .nw-cta .ic { width: 40px; height: 40px; border-radius: 10px; }
    .nw2 .nw-cta .ic svg { width: 25px; height: 19px; }
    .nw2 .nw-cta h2 { font-size: 17px; }
    .nw2 .nw-cta p { font-size: 14px; }
    .nw2 .nw-cta .bt { flex-direction: column; }
    .nw2 .nw-cta .bt a { width: 100%; }
}
