/* 뉴스 — 색은 app.css · theme.css 토큰만(라이트 · 다크 함께). 하드코딩 색 없음 — 공통 테마 층(T0)이 토큰을 바꾸면 따라간다.
   하이젠버그 배지는 --news-hb · --news-hb-ink(없으면 --blue · --panel)를 쓴다. 배경 사진 없음(데이터 화면 가독성). */
body[data-section="news"] #sect-news { display: block; }
.nw { max-width: 1680px; margin: 0 auto; padding: 18px 24px 48px; min-width: 0; }
.nw .card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.nw-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.num { font-variant-numeric: tabular-nums; }

/* 왼쪽 필터 */
.nw-rail { padding: 14px; display: grid; gap: 14px; position: sticky; top: 12px; }
.nw-q { display: flex; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--panel); }
.nw-q:focus-within { box-shadow: 0 0 0 3px var(--focus-ring); border-color: var(--accent); }
.nw-q__i { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0 10px; font-size: 14px; }
.nw-q__go { border: 0; background: var(--accent); color: var(--on-accent, var(--panel)); font-weight: 800; padding: 0 12px; cursor: pointer; }
.nw-fg { display: grid; gap: 6px; }
.nw-fh { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.nw-sel { height: 34px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--ink); padding: 0 8px; max-width: 100%; }
.nw-open { font-size: 12.5px; justify-self: start; }
.nw-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.nw-chip { min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.nw-chip:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.nw-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, var(--panel)); }
.nw-chip:disabled { opacity: .45; cursor: default; }

/* 가운데 흐름 */
.nw-main { padding: 16px 20px 18px; display: grid; gap: 12px; }
.nw-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.nw-h { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.nw-status { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.nw-status--partial, .nw-status--error { color: var(--warn-ink); }
.nw-status--not_connected { color: var(--ink-2); font-weight: 700; }
.nw-pin { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.nw-pinned { border: 1px solid var(--line); border-left: 3px solid var(--news-hb, var(--blue)); border-radius: 8px; padding: 8px 12px 2px; background: var(--panel-2); }
.nw-ph { font-size: 12px; font-weight: 800; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.nw-list { display: grid; }
.nw-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.nw-list > .nw-item:last-child { border-bottom: 0; }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--ink-3); }
.nw-time { font-weight: 700; color: var(--ink-2); }
.nw-src { font-weight: 700; color: var(--ink-2); }
.nw-sec, .nw-au { color: var(--ink-3); }
.nw-hb { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; background: var(--news-hb, var(--blue)); color: var(--news-hb-ink, var(--panel)); font-size: 11.5px; font-weight: 800; letter-spacing: -.01em; }
.nw-acc { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line-2); }
.nw-acc--free { color: var(--green); border-color: currentColor; }
.nw-acc--members { color: var(--amber); border-color: currentColor; }
.nw-t { font-size: 16px; font-weight: 800; line-height: 1.4; letter-spacing: -.01em; overflow-wrap: anywhere; }
.nw-a { color: var(--ink); text-decoration: none; }
.nw-a:hover { color: var(--accent); text-decoration: underline; }
.nw-a--s { font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.nw-sum { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.nw-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nw-cos { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.nw-co { min-height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.nw-co:hover { border-color: var(--accent); color: var(--accent); }
.nw-co--out { background: var(--panel); font-weight: 600; }
.nw-assets { font-size: 12px; color: var(--ink-3); }
.nw-rel { font-size: 12.5px; }
.nw-rel summary { cursor: pointer; color: var(--accent); font-weight: 700; width: fit-content; }
.nw-rel ul { display: grid; gap: 4px; margin: 6px 0 2px; padding-left: 10px; border-left: 2px solid var(--line); }
.nw-rel li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.nw-rel__a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.nw-rel__a:hover { text-decoration: underline; }
.nw-pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.nw-notes { display: grid; gap: 2px; padding-left: 16px; list-style: disc; }
.nw-err { margin: 24px auto; max-width: 720px; }

/* 오른쪽 */
.nw-side { display: grid; gap: 14px; min-width: 0; }
.nw-box { padding: 14px 16px; display: grid; gap: 8px; }
.nw-bh { font-size: 14px; font-weight: 800; }
.nw-top { display: grid; gap: 4px; padding-left: 18px; }
.nw-top li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.nw-srcs { display: grid; gap: 6px; }
.nw-srcs li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
.nw-terms summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.nw-terms > p { margin: 6px 0; color: var(--ink-2); }
.nw-tt { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; }
.nw-tt th, .nw-tt td { border-top: 1px solid var(--line); padding: 5px 4px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.nw-tt thead th { color: var(--ink-3); font-weight: 800; }
.nw-tt th[scope="row"] { width: 28%; }
.nw-tt td[data-verdict="prohibited"] { color: var(--red); font-weight: 700; }
.nw-tt td[data-verdict="unclear"] { color: var(--amber); font-weight: 700; }
.nw-tt td[data-verdict="allowed"] { color: var(--green); font-weight: 700; }

/* 작은 카드 */
.nw-card { padding: 14px 16px; display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.nw-clist { display: grid; gap: 10px; }
.nw-clist li { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.nw-clist li:last-child { border-bottom: 0; }
.nw-cfoot { margin-top: 2px; }

@media (max-width: 1180px) {
  .nw-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .nw-side { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 760px) {
  .nw { padding: 12px 16px 32px; }
  .nw-grid { grid-template-columns: minmax(0, 1fr); }
  .nw-rail { position: static; }
  .nw-side { grid-template-columns: minmax(0, 1fr); }
  .nw-main { padding: 14px; }
  .nw-t { font-size: 15px; }
}
