/* /news 뉴스 (11-05, news.js) — 넓은 화면: 왼쪽 목록 · 오른쪽 읽기 칸(따라 내려옴). 좁은 화면: 목록 → 기사 화면 */
.nw-main { max-width: 1320px; }
.nw-head { margin-bottom: 16px; }
.nw-head p { margin: 4px 0 0; color: var(--st-text-muted); font-size: var(--st-fs-md); }
.nw-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1024px) {
  .nw-page { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); align-items: start; }
  .nw-reader { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
}
@media (max-width: 1023px) {
  /* 기사 화면: 기사 먼저, 그 아래 최근 뉴스 목록 (11-05 사용자 「모바일 상세에서는 아래에 최근 목록」) */
  .nw-page.is-reading .nw-reader { order: 1; }
  .nw-page.is-reading .nw-side { order: 2; padding-top: 8px; }
  .nw-page.is-reading .nw-side #nw-list-h { position: static; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; font-size: var(--st-fs-lg); font-weight: 700; margin: 0 0 8px; }
  .nw-page:not(.is-reading) .nw-reader { display: none; }
}

/* 묶음 탭 · 코인 */
.nw-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--st-border); scrollbar-width: none; }
.nw-tabs [role="tab"] { flex: none; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--st-text-muted); font: 500 var(--st-fs-md)/1 var(--st-font); cursor: pointer; }
.nw-tabs [role="tab"][aria-selected="true"] { color: var(--st-accent); border-bottom-color: var(--st-accent); }
.nw-tabs [role="tab"]:focus-visible { outline: 2px solid var(--st-focus); outline-offset: -2px; }
.nw-coins { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.nw-coins[hidden] { display: none; }
.nw-coins .st-chip { cursor: pointer; border: 1px solid transparent; }
.nw-coins .st-chip[aria-pressed="true"] { border-color: var(--st-accent); color: var(--st-accent); background: var(--st-accent-soft); }

/* 목록 카드 */
.nw-list { margin-top: 10px; }
.nw-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nw-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--st-border); border-radius: 10px; background: var(--st-surface); color: var(--st-text); text-decoration: none; }
.nw-item:hover { border-color: color-mix(in srgb, var(--st-accent) 40%, var(--st-border)); }
.nw-item.is-sel { border-color: var(--st-accent); box-shadow: inset 3px 0 0 var(--st-accent); }
.nw-item.has-body { background: linear-gradient(var(--st-surface), var(--st-surface)) padding-box; }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--st-fs-xs); color: var(--st-text-muted); }
.nw-meta time { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nw-outlet { font-weight: 600; color: var(--st-text-muted); }
.nw-title { font-size: var(--st-fs-md); line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-desc { font-size: var(--st-fs-sm); line-height: 1.5; color: var(--st-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.nw-foot:empty { display: none; }
.nw-body-chip { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--st-accent-soft); color: var(--st-accent); }
.nw-also, .nw-tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--st-chip); color: var(--st-text-muted); }
.nw-more { display: block; width: 100%; margin-top: 10px; }
.nw-empty { padding: 24px 4px; }

/* 묶음 꼬리표 색 */
.nw-cat { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--st-chip); color: var(--st-text-muted); }
.nw-cat-official { background: var(--st-accent); color: #fff; }
.nw-cat-press { background: color-mix(in srgb, var(--st-accent) 16%, transparent); color: var(--st-accent); }
.nw-cat-crypto { background: color-mix(in srgb, #E8901C 18%, transparent); color: #B26A08; }
.nw-cat-research { background: color-mix(in srgb, var(--st-up) 14%, transparent); color: var(--st-up); }

/* 읽기 칸 */
.nw-reader { background: var(--st-surface); border: 1px solid var(--st-border); border-radius: 12px; padding: 24px 28px 32px; min-width: 0; }
.nw-back { border: 0; background: none; color: var(--st-accent); font: 500 var(--st-fs-md) var(--st-font); padding: 0 0 12px; cursor: pointer; }
.nw-r-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--st-fs-sm); color: var(--st-text-muted); }
.nw-r-title { font-size: 24px; line-height: 1.35; font-weight: 700; margin: 10px 0 6px; text-wrap: balance; }
.nw-r-orig { margin: 0 0 10px; color: var(--st-text-muted); font-size: var(--st-fs-md); line-height: 1.5; }
.nw-r-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.nw-r-len { font-size: var(--st-fs-sm); }
.nw-r-head { padding-bottom: 16px; border-bottom: 1px solid var(--st-border); }

/* 본문 — 읽기 좋은 폭·줄 간격 */
.nw-body { max-width: 70ch; margin-top: 20px; font-size: 16px; line-height: 1.75; color: var(--st-text); }
.nw-body p { margin: 0 0 1em; }
.nw-body h3 { font-size: 16px; font-weight: 700; margin: 1.4em 0 .5em; }
.nw-lede { font-size: 16px; line-height: 1.7; padding: 12px 14px; border-left: 3px solid var(--st-accent); background: var(--st-surface-2); border-radius: 0 8px 8px 0; margin: 20px 0; }
.nw-src-note { font-size: var(--st-fs-sm); margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--st-border); }
.nw-nobody { margin-top: 20px; max-width: 70ch; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.nw-nobody .nw-lede { margin: 0; align-self: stretch; }

/* 발표 뒤 시장 */
.nw-react { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--st-border); border-radius: 10px; background: var(--st-surface-2); }
.nw-react h2, .nw-rel h2 { font-size: var(--st-fs-md); font-weight: 700; margin: 0 0 8px; }
.nw-react-wrap { overflow-x: auto; }
.nw-react table { border-collapse: collapse; width: 100%; max-width: 520px; font-size: var(--st-fs-md); font-variant-numeric: tabular-nums; }
.nw-react th, .nw-react td { padding: 5px 10px; text-align: right; border-bottom: 1px solid var(--st-border); white-space: nowrap; }
.nw-react thead th { font-size: 11px; font-weight: 500; color: var(--st-text-muted); }
.nw-react tbody th { text-align: left; font-weight: 600; }
.nw-react tbody tr:last-child > * { border-bottom: 0; }
.nw-react-note { margin: 8px 0 0; font-size: 11px; }

/* 같은 소식 */
.nw-rel { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--st-border); }
.nw-rel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nw-rel a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 10px; border-radius: 8px; color: var(--st-text); text-decoration: none; font-size: var(--st-fs-md); }
.nw-rel a:hover { background: var(--st-surface-2); }
.nw-rel b { font-weight: 500; flex: 1 1 260px; min-width: 0; }
.nw-rel time { font-size: var(--st-fs-xs); color: var(--st-text-muted); }

@media (max-width: 1023px) {
  .nw-reader { padding: 16px 16px 28px; border-radius: 10px; }
  .nw-r-title { font-size: 20px; }
  .nw-body, .nw-lede { font-size: 15px; }
}

/* 번역 · 원문 바꾸기 (11-05) */
.nw-trbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 18px; font-size: var(--st-fs-sm); }
.nw-trbar button { padding: 5px 12px; border: 1px solid var(--st-border); border-radius: 999px; background: var(--st-surface); color: var(--st-text-muted); font: 500 var(--st-fs-sm) var(--st-font); cursor: pointer; }
.nw-trbar button[aria-pressed="true"] { border-color: var(--st-accent); color: var(--st-accent); background: var(--st-accent-soft); }
.nw-lang { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--st-border); color: var(--st-text-muted); }   /* 원문 언어 (11-05) */
