/* ─────────────────────────────────────────────────────────────────────────
 * News — prototype-v2 SoT: docs/prototype-v2/frontend/user-portal/news/index.html (inline <style>)
 *   주제 chip filter + NOW pulse strip + 언론사 select + AI 브리핑 배너 +
 *   News list (3-Tier 중 List 만) + 사이드바(주요 지표 + 이슈 키워드) +
 *   페이지네이션 번호 + Detail 슬라이드(4-button footer).
 *
 * 사용자 명시 컷: 지역·출처 chip 배제, 주간 랭킹 배제, Hero/Sub 배제.
 * ADR 0016 mobile-first — max-width 미디어 쿼리 금지. 768/1024 breakpoint 토큰.
 * ──────────────────────────────────────────────────────────────────────── */

.news-page {
  padding: 8px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .news-page { padding: 12px 40px; }
}

/* ── Header ─────────────────────────────────────────────────────────── */
.news-page-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--spacing-md);
}
@media (min-width: 768px) {
  .news-page-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.news-page-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-page-header h1 i { color: var(--primary); font-size: 18px; }
.news-page-header p { font-size: 13px; color: var(--text-muted); margin: 0; }
@media (min-width: 768px) { .news-page-header h1 { font-size: 24px; } }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.live-tag i {
  color: #10b981;
  font-size: 8px;
}
.stamp {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

/* ── 검색 영역 (헤더 직하 별도 줄) ──────────────────────────────────── */
.news-search-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .news-search-section {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
}
.news-search-section .news-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
}
.news-search-section .news-search-wrap input {
  height: 36px;
  width: 100%;
  /* 좌측 아이콘 제거 → 좌측 패딩 정상화. 우측 36px 은 search-clear(X) 버튼 공간 유지 */
  padding: 0 36px 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.news-search-section .news-search-wrap input::placeholder { color: var(--text-muted); }
.news-search-section .news-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 205, 0.12);
}
.news-search-section .search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
}
.news-search-section .search-clear:hover { color: var(--text-main); }
.news-search-submit {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.news-search-submit:hover { opacity: 0.92; }
.news-search-section .search-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}
.news-search-section .search-count strong {
  color: var(--primary);
  font-weight: 800;
}

/* ── Filter Panel (주제만) ──────────────────────────────────────────── */
.news-filter-panel {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.news-fp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}
.news-fp-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  width: 32px;
  flex-shrink: 0;
}
.news-fp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}
/* 모바일: 한 줄 + 가로 스와이프는 공통 .chip-scroll-row(components.css) — 사이트 보정만 */
@media (max-width: 767px) {
  .news-fp-chips { padding-bottom: 2px; }
}
/* 날짜 범위 필터 */
.news-fp-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-fp-dates input[type="date"] {
  /* 전역 input{width:100%}(0,3,1)이 더 강해 !important 로 이김 — 세로로 쌓이는 것 방지 */
  width: 150px !important; flex: 0 0 auto;
  padding: 6px 10px; border: 1px solid var(--glass-border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: var(--bg-surface); color: var(--text-main);
}
.news-fp-date-sep { color: var(--text-muted); }
.news-filter-reset { margin-left: auto; border: none; background: transparent; color: var(--text-muted); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; font-family: inherit; }
.news-filter-reset:hover { color: var(--danger, #DC2626); }

/* ── 이슈 클러스터 ─────────────────────────────────────────────────── */
.news-cluster { margin-bottom: 20px; }
.news-cluster-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.news-cluster-h2 { font-size: 17px; font-weight: 800; color: var(--text-main); margin: 0; display: flex; align-items: center; gap: 8px; }
.news-cluster-h2 i { color: var(--secondary); }
.news-cluster-sub { font-size: 12.5px; color: var(--text-muted); }
/* 단일 열 전체폭 카드(프로토타입 정합) */
.news-cluster-grid { display: flex; flex-direction: column; gap: 14px; }
.news-cluster-card { background: var(--bg-surface); border: 1px solid var(--glass-border); border-radius: 12px; padding: 18px 20px; }
.news-cluster-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.news-cluster-badge { font-size: 11px; font-weight: 800; color: var(--warning); background: var(--bg-accent-amber); padding: 3px 9px; border-radius: 999px; }
.news-cluster-idx { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-muted); border: 1px solid var(--primary-border); padding: 3px 8px; border-radius: 6px; text-decoration: none; }
.news-cluster-idx:hover { background: var(--primary); color: #fff; }
.news-cluster-title { font-size: 16px; font-weight: 800; color: var(--text-main); margin: 0 0 6px; }
.news-cluster-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-cluster-toggle {
  background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; padding: 0; display: inline-flex; align-items: center; gap: 5px;
}
.news-cluster-arts { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--glass-border); }
.news-cluster-arts > li { border-bottom: 1px solid var(--glass-border); }
.news-cluster-arts > li:last-child { border-bottom: none; }
.news-cluster-art { display: flex; gap: 16px; align-items: flex-start; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; padding: 10px 2px; }
.news-cluster-art:hover .news-cluster-art-title { color: var(--primary); }
.news-cluster-art-date { flex-shrink: 0; width: 84px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.news-cluster-art-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.news-cluster-art-title { font-size: 13px; font-weight: 700; color: var(--text-main); }
.news-cluster-art-src { font-size: 11px; color: var(--text-muted); }

/* 검토의견서 #21 — 필터칩을 대시보드 칩(dash-brief-chip)과 동일 규격으로 통일 */
.news-fp-chip {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.news-fp-chip:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}
.news-fp-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 113, 205, 0.25);
}
.news-fp-empty {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Filter Bar ────────────────────────────────────────────────────── */
.news-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
}
@media (min-width: 1024px) {
  .news-filter-bar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
}

.filter-divider {
  display: none;
}
@media (min-width: 1024px) {
  .filter-divider {
    display: block;
    width: 1px;
    height: 24px;
    background: var(--glass-border);
    margin: 0 4px;
  }
}

/* Live keyword NOW strip */
.live-kw {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05), rgba(99, 102, 241, 0.05));
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
  overflow: hidden;
}
.lk-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
  flex-shrink: 0;
  padding-right: 10px;
  border-right: 1px solid var(--glass-border);
}
.lk-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: lk-pulse 1.6s infinite;
}
@keyframes lk-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.lk-chips {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.lk-chips::-webkit-scrollbar { display: none; }
.lk-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--bg-card, var(--bg-surface));
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.lk-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.lk-rank {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
  margin-right: 2px;
}
.lk-badge {
  margin-left: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.lk-badge--new {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
}
/* HOT 배지 = 🔥 이모지 자체로 표현(별도 배경 불필요), 클래스는 의미 표식용 */
.lk-badge--hot {
  font-size: 0.85em;
}

.source-select {
  width: 220px !important;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background-color: var(--bg-darker);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.source-select:focus { border-color: var(--primary); }

/* ── AI 시황 브리핑 배너 ──────────────────────────────────────────────
   ⚠️ UI-24(V1.7.2) 이후 뉴스 화면에서 미사용 — 통합 AI 레이어(.ai-layer)가 대체.
   8/3 재리뷰에서 통합안이 반려될 경우 되돌릴 근거로 남겨둔다(하위 .ai-banner-*·.ai-idx-chip 는 레이어에서 계속 사용). */
.ai-brief-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ai-brief-banner.theme-neutral {
  background: rgba(14, 165, 233, 0.04);
  border-color: rgba(14, 165, 233, 0.18);
}
.ai-brief-banner.theme-neutral .ai-banner-icon { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
/* #25 라벨 대비 — 연한 틴트 배경 위 밝은 톤(#38bdf8)은 4.5:1 미달 → 어두운 sky 앰버로 반전 */
.ai-brief-banner.theme-neutral .ai-banner-label { color: #0369A1; }

.ai-brief-banner.theme-hot-kw {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.22);
}
.ai-brief-banner.theme-hot-kw .ai-banner-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
/* #25 라벨 대비 — 밝은 앰버(#fbbf24) → 어두운 앰버(#B45309)로 반전, 흰 배경 대비 4.5:1 확보 */
.ai-brief-banner.theme-hot-kw .ai-banner-label { color: #B45309; }

.ai-brief-banner.theme-new-banner {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.22);
}
.ai-brief-banner.theme-new-banner .ai-banner-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
/* #25 라벨 대비 — 밝은 블루(#60a5fa) → 어두운 블루(#1D4ED8)로 반전 */
.ai-brief-banner.theme-new-banner .ai-banner-label { color: #1D4ED8; }

.ai-brief-banner.theme-eco-kw {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.18);
}
.ai-brief-banner.theme-eco-kw .ai-banner-icon { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
/* #25 라벨 대비 — 밝은 퍼플(#a78bfa) → 어두운 퍼플(#6D28D9)로 반전 */
.ai-brief-banner.theme-eco-kw .ai-banner-label { color: #6D28D9; }

/* #25 다크 모드 — 배너 배경이 어두우므로 라벨은 밝은 톤 유지(테마별 accent 재정의) */
[data-theme='dark'] .ai-brief-banner.theme-neutral .ai-banner-label { color: #38bdf8; }
[data-theme='dark'] .ai-brief-banner.theme-hot-kw .ai-banner-label { color: #fbbf24; }
[data-theme='dark'] .ai-brief-banner.theme-new-banner .ai-banner-label { color: #60a5fa; }
[data-theme='dark'] .ai-brief-banner.theme-eco-kw .ai-banner-label { color: #a78bfa; }

.ai-banner-icon {
  width: 40px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.ai-banner-body {
  flex: 1;
  min-width: 200px;
}
.ai-banner-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ai-banner-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
}
.ai-banner-text strong { font-weight: 800; }
/* renderMarkdown 출력은 <p> 래핑 — 배너 안에서 여백 제거 */
.ai-banner-text p { margin: 0; }

/* 브리핑 푸터 — 리포트 전환 링크 + 만족도(👍/👎) 계측 */
.ai-banner-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 10px;
}
.ai-banner-report-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  text-decoration: none;
}
.ai-banner-report-link:hover { text-decoration: underline; }
.ai-banner-rate { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ai-banner-rate-label { font-size: 12px; color: var(--text-muted); }
.ai-banner-rate-btn {
  width: 26px; height: 26px; padding: 0;
  border: 1px solid var(--glass-border); border-radius: 6px;
  background: transparent; color: var(--text-muted);
  cursor: pointer; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s, border-color .15s;
}
.ai-banner-rate-btn:hover { color: var(--primary); border-color: var(--primary); }
.ai-banner-rate-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ai-banner-rate-btn.on.down { background: var(--danger, #d64545); border-color: var(--danger, #d64545); }
.ai-banner-rate-thanks { font-size: 12px; color: var(--success, #2e7d32); font-weight: 600; }
.ai-banner-right {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}
.ai-idx-chip {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  text-align: center;
  min-width: 80px;
}
.ai-idx-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.ai-idx-value {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
.ai-idx-change {
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
}
.ai-idx-change.change-up { color: var(--color-up); }
.ai-idx-change.change-down { color: var(--color-down); }
.ai-idx-change.change-flat { color: var(--text-muted); }

/* ── Error banner ──────────────────────────────────────────────────── */
.news-error-banner {
  background: var(--bg-accent-red, #fee2e2);
  color: #b91c1c; /* #9 — danger #dc2626 은 빨강 틴트 위 4.39:1 미달 (다크는 하단 override) */
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
/* 다크 모드 대비 보강 — Settings.css / NotificationSettings.css 와 일관. */
[data-theme='dark'] .news-error-banner {
  color: #fecaca;
}

/* ── Grid ──────────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) {
  .news-grid { grid-template-columns: 1fr 320px; gap: 24px; }
}
.news-trending-sidebar { min-width: 0; }
.news-trending-card {
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.news-trending-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.news-trending-head strong { color: var(--text-main); font-size: 14px; font-weight: 800; }
.news-trending-head span { margin-left: auto; color: var(--text-muted); font-size: 10.5px; white-space: nowrap; }
.news-trending-sidebar .lk-chips { display: flex; flex-direction: column; gap: 2px; overflow: visible; }
.news-trending-sidebar .lk-chip {
  display: flex;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 13px;
}
.news-trending-sidebar .lk-chip:hover { background: var(--bg-muted); transform: none; }
.news-trending-sidebar .lk-rank { width: 16px; color: var(--primary); font-size: 11px; }
.news-trending-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--glass-border); }
/* ── News list (List-only) ─────────────────────────────────────────── */
.news-feed-root {
  display: flex;
  flex-direction: column;
}
.news-feed-loading {
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px;
}

/* ── AI 추천 히어로 카드 (prototype hero-card 정합) — featured-first 최상단 1건 ── */
.news-hero-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 14px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.news-hero-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.news-hero-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  background: linear-gradient(135deg, #0d2040 0%, #1a3a6c 100%);
}
.news-hero-thumb-icon {
  font-size: 64px;
  color: #fff;
  opacity: 0.18;
  transition: transform 0.4s ease;
}
.news-hero-card:hover .news-hero-thumb-icon { transform: scale(1.1) rotate(4deg); }
.news-hero-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  background: var(--primary);
}
.news-hero-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.news-hero-meta .hero-source-tag { font-weight: 700; color: var(--text-secondary); }
.news-hero-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 0 10px;
  transition: color 0.2s;
}
.news-hero-card:hover .news-hero-title { color: var(--primary); }
.news-hero-summary {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 10px 12px;
  background: var(--bg-darker);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-hero-summary i { font-size: 8px; vertical-align: top; margin-right: 4px; opacity: 0.5; }
@media (max-width: 767px) {
  .news-hero-card { grid-template-columns: 1fr; }
  .news-hero-thumb { min-height: 110px; }
  .news-hero-thumb-icon { font-size: 44px; }
  .news-hero-title { font-size: 15.5px; }
}

/* ── AI 추천 서브카드 그리드 (prototype sub-news-grid / sub-card 정합) — 히어로 다음 추천들 ── */
.news-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.news-sub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.news-sub-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.news-sub-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(0, 113, 205, 0.08);
  border: 1px solid rgba(0, 113, 205, 0.15);
  margin-bottom: 9px;
}
.news-sub-badge i { font-size: 8px; }
.news-sub-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.news-sub-card:hover .news-sub-title { color: var(--primary); }
.news-sub-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 8px;
}
.news-sub-meta .sub-source-tag { font-weight: 700; color: var(--text-secondary); }
@media (max-width: 767px) {
  .news-sub-grid { grid-template-columns: 1fr; }
}

.news-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s;
  position: relative;
}
.news-list-item:hover {
  background: var(--bg-surface);
  border-color: var(--glass-border);
}
.news-list-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--glass-border);
  opacity: 0.5;
}
.news-list-item:hover::after { opacity: 0; }

.list-source-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.icon-external { background: rgba(0, 113, 205, 0.1); color: var(--primary); }
.icon-kobc     { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.list-content { flex: 1; min-width: 0; }
.list-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-item:hover .list-title { color: var(--primary); }
.list-summary {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.list-meta .source-name { font-weight: 700; color: var(--text-secondary); }

/* 다중 카테고리·키워드 칩 (ADR-0020 N:M) */
.list-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.list-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.list-tag-ctgry { background: rgba(0,113,205,0.1); color: var(--primary); }
.list-tag-kywd { background: var(--surface-2, rgba(0,0,0,0.05)); color: var(--text-muted); }

/* ── No results ────────────────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.no-results i { font-size: 36px; display: block; margin-bottom: 12px; opacity: 0.5; }
.no-results p { font-size: 15px; margin: 0 0 8px; font-weight: 700; color: var(--text-secondary); }
.no-results small { font-size: 12px; }
.news-reset-btn {
  margin-top: 12px;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-main);
}
.news-reset-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Pagination ────────────────────────────────────────────────────── */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
}
.np-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.np-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); }
.np-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.np-btn.active {
  border-color: var(--primary);
}
.np-ellipsis {
  align-self: center;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 4px;
}

.news-cap-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── Sidebar ───────────────────────────────────────────────────────── */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
}
.sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--glass-border);
}
.sidebar-card-header h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sidebar-card-body { padding: 14px 16px; }
.sidebar-card-link {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-decoration: none;
}
.sidebar-card-link:hover { color: var(--primary); }
.sidebar-card-meta {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-darker);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.market-item {
  background: var(--bg-darker);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 11px 12px;
}
.market-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 3px;
}
/* #93(검토의견서 #3) — 지수 약어 국문 병기 보조 라벨 */
.market-ko {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-value {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
.market-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Keyword ranking */
.kw-rank-list { list-style: none; padding: 0; margin: 0; }
.kw-rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  transition: padding 0.15s;
}
.kw-rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.kw-rank-item:first-child { padding-top: 0; }
.kw-rank-item:hover .kw-rank-text { color: var(--primary); }
.kw-rank-num {
  font-size: 13px;
  font-weight: 900;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.kw-rank-num.gold   { color: #f59e0b; }
.kw-rank-num.silver { color: #94a3b8; }
.kw-rank-num.bronze { color: #cd7c4f; }
.kw-rank-text {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}
.kw-rank-delta {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.kw-rank-empty {
  color: var(--text-muted);
  font-size: 13px;
  list-style: none;
}

/* ── AI 추천 뱃지 (목록 아이템) ────────────────────────────────────── */
.ai-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
  border: 1px solid rgba(14, 165, 233, 0.18);
  flex-shrink: 0;
}
.ai-rec-badge i { font-size: 9px; }

/* ── 주간 랭킹 뉴스 (사이드바) ─────────────────────────────────────── */
.news-rank-list { list-style: none; padding: 0; margin: 0; }
.news-rank-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
}
.news-rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-rank-item:first-child { padding-top: 0; }
.news-rank-item:hover .news-rank-title { color: var(--primary); }
.news-rank-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.7;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.4;
}
.news-rank-num.top3 { opacity: 1; color: #f59e0b; }
.news-rank-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

/* ═════════════════════════════════════════════════════════════════════════
 * UI-23 (V1.7.2) — 뉴스 리스트 최상단 배치
 *   페이지 타이틀 헤더 제거 · 상세 필터 접이식 · 급상승 키워드 1행 축약 ·
 *   AI 브리핑/이슈 클러스터를 우측 사이드로 이동(사이드 폭 대응 변형).
 *   근거: 2026-07-29 회의 05:21~07:45 · 11:15 "뉴스가 빠르게 밑에 쭉 보였으면"
 * ════════════════════════════════════════════════════════════════════════ */

/* 검색 줄 — 상세 필터 토글 버튼 */
.news-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 36px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.news-filter-toggle:hover { color: var(--text-main); border-color: var(--text-muted); }
.news-filter-toggle.on,
.news-filter-toggle.has-active,
.news-filter-toggle[aria-pressed="true"] {
  color: var(--primary);
  border-color: var(--primary-border, var(--primary));
  background: var(--primary-muted);
}
.news-filter-toggle .nft-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
.news-filter-panel[hidden] { display: none; }

/* 급상승 키워드 1행 퀵바 (기존 .news-filter-bar 2행 → 1행 축약) */
.news-quickbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 4px 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--surface-divider, var(--glass-border));
}
.news-quickbar-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .news-quickbar-stamp { margin-left: 0; }
}

/* UI-24: 사이드 이동분(.ai-brief-banner.is-side / .news-cluster.is-side)은
   통합 AI 레이어(.ai-layer)로 대체되어 제거 — 아래 레이어 스타일이 그 역할을 이어받는다. */

/* ═════════════════════════════════════════════════════════════════════════
 * UI-24 (V1.7.2) — AI 브리핑·이슈 클러스터·주간 랭킹 통합 레이어
 *   브리핑=글 / 클러스터·키워드=태그 / 랭킹=순위 리스트로 역할을 재정의해 단일 레이어에 계층 배치.
 *   프레임은 최상위 1개(.ai-layer)만 두고 내부 구획은 구분선·여백으로 처리(UI-20 톤).
 * ════════════════════════════════════════════════════════════════════════ */

/* 시안 전환기 (A 통합형 / B 분리형 · 8/3 택일)
   ⚠️ 제품 UI 가 아니라 재리뷰 비교용 검토 도구다. 사이드 최하단에 점선 박스로 분리해
   실제 화면 요소(설정 UI)로 오인되지 않게 한다. 8/3 확정 후 제거. */
.ui24-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px dashed var(--surface-divider, var(--glass-border));
  border-radius: var(--radius-md);
  background: transparent;
  opacity: 0.85;
}
.ui24-switch .uvs-tag {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-accent-amber, rgba(245,158,11,.12));
  color: var(--warning);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ui24-switch .uvs-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.ui24-switch .uvs-btn {
  padding: 3px 9px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.ui24-switch .uvs-btn.on {
  background: var(--primary-muted);
  border-color: var(--primary-border, var(--primary));
  color: var(--primary);
}
.ui24-switch .uvs-note {
  width: 100%;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* 통합 레이어 본체 */
.ai-layer {
  background: var(--surface-1, var(--bg-surface));
  border: 1px solid var(--surface-divider, var(--glass-border));
  border-radius: 14px;
  padding: 16px 16px 12px;
  border-top: 3px solid var(--primary);
}
.ai-layer.theme-hot-kw    { border-top-color: #F59E0B; }
.ai-layer.theme-new-banner{ border-top-color: #3B82F6; }
.ai-layer.theme-eco-kw    { border-top-color: #8B5CF6; }

.ai-layer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-layer-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  background: var(--primary-muted);
  color: var(--primary);
}
.ai-layer-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.3;
}
.ai-layer-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.ai-layer-text strong { color: var(--text-main); font-weight: 800; }

/* 이슈 키워드 — 랭킹 카드를 태그로 흡수 */
.ai-layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.ai-layer-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: none;
  border-radius: 999px;
  background: var(--surface-1-sunken, var(--bg-darker));
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.ai-layer-tag:hover { color: var(--primary); background: var(--primary-muted); }
.ai-layer-tag.is-hot { color: var(--text-main); }
.ai-layer-tag-delta {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #B45309;
}
[data-theme='dark'] .ai-layer-tag-delta { color: #fbbf24; }

/* 브리핑 종속 지수 */
.ai-layer-idx {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.ai-layer-idx .ai-idx-chip { flex: 1 1 0; min-width: 0; padding: 6px 8px; }

/* 내부 구획 — 카드 대신 구분선 */
.ai-layer-sec {
  border-top: 1px solid var(--surface-divider, var(--glass-border));
  margin-top: 12px;
  padding-top: 10px;
}
.ai-layer-sec-h {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}
.ai-layer-sec-h i { color: var(--secondary); font-size: 11px; }
.ai-layer-sec-sub { font-size: 10.5px; font-weight: 600; color: var(--text-muted); }

/* 이슈 추적(클러스터 축약) */
.ai-issue-list { list-style: none; margin: 0; padding: 0; }
.ai-issue {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.ai-issue > i { color: var(--text-muted); font-size: 10px; flex-shrink: 0; }
.ai-issue-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-issue-title { font-size: 12.5px; font-weight: 700; color: var(--text-main); }
.ai-issue:hover .ai-issue-title { color: var(--primary); }
.ai-issue-meta { font-size: 10.5px; color: var(--text-muted); }
.ai-issue-arts { list-style: none; margin: 0 0 6px; padding: 0 0 0 2px; }
.ai-issue-art {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 5px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.ai-issue-art-date { flex-shrink: 0; font-size: 10.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ai-issue-art-title { font-size: 11.5px; color: var(--text-secondary); }
.ai-issue-art:hover .ai-issue-art-title { color: var(--primary); }

/* 주간 랭킹(요약 리스트) — A안 레이어 내부 / B안 별도 카드 공용 */
.ai-rank-list { list-style: none; margin: 0; padding: 0; }
.ai-rank-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.ai-rank-num {
  flex-shrink: 0;
  width: 16px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.ai-rank-num.top3 { color: var(--primary); }
.ai-rank-title { font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.ai-rank-row:hover .ai-rank-title { color: var(--primary); }
.sidebar-card-body .ai-rank-list { padding: 2px 0; }

/* 푸터 — 리포트 링크 + 평가 */
.ai-layer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--surface-divider, var(--glass-border));
  margin-top: 12px;
  padding-top: 8px;
}

/* ═════════════════════════════════════════════════════════════════════════
 * UI-25 (V1.7.2) — 뉴스 썸네일
 *   네이버 뉴스식 썸네일+제목 리스트. 이미지는 저장 후 호출하는 구조를 가정하고,
 *   이미지가 없는 기사는 슬롯을 렌더하지 않아 텍스트형 레이아웃을 그대로 유지한다.
 *   ⚠️ 연합뉴스 이미지 수신 확인 필요(§7 미결) — 현재 목업 SVG. AI 이미지 생성은 범위 밖.
 * ════════════════════════════════════════════════════════════════════════ */

/* 리스트 항목 썸네일 */
.news-list-thumb {
  width: 96px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-1-sunken, var(--bg-darker));
}
.news-list-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-list-item.has-thumb { align-items: flex-start; }
.news-list-item.has-thumb .list-content { padding-top: 1px; }
@media (max-width: 767px) {
  .news-list-thumb { width: 76px; height: 56px; }
}

/* AI 추천 히어로 — 아이콘 대신 실제 이미지 */
.news-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news-hero-card:hover .news-hero-img { transform: scale(1.04); }

/* AI 추천 서브카드 썸네일 */
.news-sub-thumb {
  width: calc(100% + 30px);
  margin: -15px -15px 12px;
  height: 104px;
  overflow: hidden;
  background: var(--surface-1-sunken, var(--bg-darker));
  border-radius: 12px 12px 0 0;
}
.news-sub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═════════════════════════════════════════════════════════════════════════
 * UI-26 (V1.7.2) — 뉴스 카테고리 고정 메뉴(탭)
 *   1차 축 "일반 뉴스 ‖ AI 브리핑" + 2차 축 주제 탭. 네이버 뉴스식 고정 IA.
 *   ⚠️ 주제 리스트는 발주처 확정 대기(OP-08) — 현재 더미 5종.
 * ════════════════════════════════════════════════════════════════════════ */
.news-tabs {
  border-bottom: 1px solid var(--surface-divider, var(--glass-border));
  margin-bottom: 12px;
}
.news-tabs-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  /* 탭은 고정 IA — 절대 줄바꿈되지 않고 좁으면 가로 스크롤한다(줄바뀜처럼 보이던 현상 차단) */
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.news-tabs-inner::-webkit-scrollbar { display: none; }
.news-tab {
  position: relative;
  flex-shrink: 0;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.news-tab:hover { color: var(--text-main); }
.news-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.news-tab.is-my i { color: #F59E0B; }
.news-tab.is-brief i { color: var(--secondary); }
.news-tab.is-brief.active { color: var(--secondary); border-bottom-color: var(--secondary); }
.news-tab-sep {
  flex-shrink: 0;
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background: var(--glass-border);
}

/* "AI 브리핑" 탭 — 제목 목차형 뷰 */
.brief-index { display: flex; flex-direction: column; gap: 6px; }
.brief-index-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-1-sunken, var(--bg-darker));
  border-radius: 8px;
  padding: 9px 12px;
  margin: 0 0 6px;
}
.brief-index-note i { color: var(--primary); margin-top: 2px; }
.brief-index-block {
  padding: 14px 2px 12px;
  border-bottom: 1px solid var(--surface-divider, var(--glass-border));
}
.brief-index-block:last-child { border-bottom: none; }
.brief-index-head { display: flex; align-items: baseline; gap: 10px; }
.brief-index-slot {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.brief-index-title { font-size: 15.5px; font-weight: 800; color: var(--text-main); margin: 0; }
.brief-index-lead { font-size: 12.5px; color: var(--text-secondary); margin: 6px 0 10px; }
.brief-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: bidx;
}
.brief-index-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 7px 0 7px 18px;
  position: relative;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.brief-index-item::before {
  counter-increment: bidx;
  content: counter(bidx) '.';
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}
.brief-index-item-title { font-size: 13.5px; font-weight: 700; color: var(--text-main); line-height: 1.45; }
.brief-index-item:hover .brief-index-item-title { color: var(--primary); }
.brief-index-item-src { font-size: 11px; color: var(--text-muted); }

/* 다크 대비 보정 — --secondary(#6366F1)는 어두운 배경에서 4.5:1 미달이라 탭·섹션 아이콘만 톤업 */
[data-theme='dark'] .news-tab.is-brief,
[data-theme='dark'] .news-tab.is-brief i,
[data-theme='dark'] .ai-layer-sec-h i { color: #A5B4FC; }
[data-theme='dark'] .news-tab.is-brief.active { border-bottom-color: #A5B4FC; }
