/**
 * news-card.css  — 뉴스 카드 표준화 시스템 v3.0
 * ─────────────────────────────────────────────────────────────
 * 뉴스 노출 표준:
 *   줄1:  [지역] [섹션]  제목 타이틀  (한 줄 형)
 *   줄2:  [지역] [섹션]
 *         제목 타이틀    (두 줄 형)
 *   언론사/발행단체: 선택적 표시
 *
 * 카드 타입 8종:
 *   .nc-card            — 기본 (사진 상단/하단)
 *   .nc-card-photo      — 사진 전용 (오버레이)
 *   .nc-card-video      — 동영상 전용 (플레이 버튼)
 *   .nc-item-text       — 제목만 (사진 없음)
 *   .nc-card-webzine    — 웹진형 (사진 좌/우/상/하)
 *   .nc-card-card       — 카드뉴스 (정사각)
 *   .nc-rank-item       — 사이드 랭킹 리스트
 *
 * 특수 뱃지 섹션:
 *   .nc-special-section — 많이 본 / 관심 / 추천 / 긴급 뉴스
 *
 * 광고 블록:
 *   .nc-ad-wrap         — 배너 광고 래퍼
 * ─────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════════════════════
   CSS 변수 (테마 토큰)
═══════════════════════════════════════════════════════════ */
:root {
  --nc-radius      : 8px;
  --nc-radius-sm   : 6px;
  --nc-radius-xs   : 4px;
  --nc-shadow      : 0 1px 4px rgba(0,0,0,.06);
  --nc-shadow-hover: 0 6px 20px rgba(0,0,0,.13);
  --nc-border      : #f0f4f8;
  --nc-bg          : #ffffff;
  --nc-text-title  : #0f172a;
  --nc-text-body   : #334155;
  --nc-text-meta   : #94a3b8;
  --nc-text-time   : #b0bec5;
  --nc-accent      : #03c75a;
  --nc-badge-h     : 18px;
  --nc-transition  : .22s ease;
  --nc-img-ratio   : 16/9;

  /* ── 타이포그래피 스케일 (PROJECT_RULES.md 원칙3 / layout.css --fs-* 공통 참조) ── */
  --np-fs-xs: var(--fs-xs, 12px);   /* 12px — 배지 전용 */
  --np-fs-sm: var(--fs-sm, 14px);   /* 14px — 메타·날짜·보조텍스트 최솟값 */
  --np-fs-base: var(--fs-base, 16px);   /* 16px — 본문 기본 */
  --np-fs-md: var(--fs-md, 17px);   /* 17px — 강조 본문·버튼·폼 */
  --np-fs-lg: var(--fs-lg, 18px);   /* 18px — 카드 제목·섹션명 */
  --np-fs-xl: var(--fs-xl, 20px);   /* 20px — 서브 헤더 */
  --np-fs-2xl: var(--fs-2xl, 24px);   /* 24px — 페이지 제목 */
  --np-fs-3xl: var(--fs-3xl, 28px);   /* 28px — 섹션 대제목 */
  --np-fs-hero: var(--fs-hero, 32px);   /* 32px — 히어로 제목 */
}

/* ═══════════════════════════════════════════════════════════
   공통 배지: [지역] [섹션] [언론사]
═══════════════════════════════════════════════════════════ */

/* 배지 행 */
.nc-meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 5px;
  line-height: 1;
  min-height: var(--nc-badge-h);
}

/* 공통 배지 기본 */
.nc-badge-region,
.nc-badge-section,
.nc-badge-media,
.nc-badge-breaking,
.nc-badge-hot,
.nc-badge-interest,
.nc-badge-recommend,
.nc-badge-urgent {
  display: inline-flex;
  align-items: center;
  height: var(--nc-badge-h);
  padding: 0 6px;
  font-size: var(--np-fs-sm);
  font-weight: 700;
  border-radius: var(--nc-radius-xs);
  white-space: nowrap;
  letter-spacing: .01em;
  flex-shrink: 0;
  line-height: 1;
}

/* 지역 배지 — 파랑 계열 */
.nc-badge-region {
  color: #fff;
  background: #2563eb;
}

/* 섹션 배지 — 기본 초록 (인라인 style로 덮어씀) */
.nc-badge-section {
  color: #fff;
  background: var(--nc-accent);
}

/* 언론사/발행단체 — 회색 */
.nc-badge-media {
  color: #475569;
  background: #f1f5f9;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

/* 긴급 */
.nc-badge-breaking,
.nc-badge-urgent {
  color: #fff;
  background: #d32f2f;
  animation: nc-pulse 1.4s infinite;
}
@keyframes nc-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .7; }
}

/* 많이 본 뉴스 */
.nc-badge-hot {
  color: #fff;
  background: #e64a19;
}

/* 관심 뉴스 */
.nc-badge-interest {
  color: #fff;
  background: #7b1fa2;
}

/* 추천 뉴스 */
.nc-badge-recommend {
  color: #fff;
  background: #1565c0;
}

/* ── 인라인 태그 (제목 앞) ─────────────────────────────── */
.nc-inline-tags {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}
.nc-inline-tags .nc-badge-region,
.nc-inline-tags .nc-badge-section {
  height: 16px;
  font-size: var(--np-fs-sm);
  padding: 0 5px;
}

/* ═══════════════════════════════════════════════════════════
   제목 공통 (no-clamp = 최대한 길게)
═══════════════════════════════════════════════════════════ */
.nc-title {
  font-size: var(--np-fs-sm);
  font-weight: 700;
  line-height: 1.5;
  color: var(--nc-text-title);
  margin: 0 0 6px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.nc-title a {
  color: inherit;
  text-decoration: none;
}
.nc-title a:hover {
  color: #1565c0;
}
/* 크기 변형 */
.nc-title.sz-lg  { font-size: var(--np-fs-md); }
.nc-title.sz-md  { font-size: var(--np-fs-base); }
.nc-title.sz-sm  { font-size: var(--np-fs-sm); }
.nc-title.sz-xs  { font-size: var(--np-fs-sm); }

/* 클램프: 기본은 no-clamp(전체 노출)  */
.nc-title.no-clamp  { overflow: visible; display: block; -webkit-line-clamp: unset; }
.nc-title.clamp-2   { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-title.clamp-3   { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-title.clamp-4   { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ═══════════════════════════════════════════════════════════
   푸터 (시간 / 뷰카운트 / 언론사)
═══════════════════════════════════════════════════════════ */
.nc-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--np-fs-sm);
  color: var(--nc-text-time);
  margin-top: auto;
  flex-wrap: wrap;
}
.nc-footer i { margin-right: 2px; }
.nc-media-name {
  font-weight: 600;
  color: #64748b;
  font-size: var(--np-fs-sm);
}
.nc-summary {
  font-size: var(--np-fs-sm);
  color: #64748b;
  line-height: 1.6;
  margin: 4px 0 6px;
}
.nc-time-dot {
  font-size: var(--np-fs-sm);
  color: var(--nc-text-time);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   TYPE 1: 기본 카드 (사진 상/하 배치)
═══════════════════════════════════════════════════════════ */
.nc-card {
  display: flex;
  flex-direction: column;
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  overflow: hidden;
  box-shadow: var(--nc-shadow);
  transition: box-shadow var(--nc-transition), transform var(--nc-transition);
  position: relative;
  cursor: pointer;
}
/* 카드 전체 클릭 오버레이 */
.nc-card > .nc-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* nc-body 내부 요소는 pointer-events:none → 카드 <a>로 클릭 전달 */
.nc-card .nc-body,
.nc-card .nc-body * { pointer-events: none; }
.nc-card:hover {
  box-shadow: var(--nc-shadow-hover);
  transform: translateY(-2px);
}

/* 사진 아래 배치 */
.nc-card.photo-bottom {
  flex-direction: column-reverse;
}

/* 공통 썸네일 래퍼 */
.nc-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--nc-radius) var(--nc-radius) 0 0;
  background: #e2e8f0;
  flex-shrink: 0;
}
.nc-card.photo-bottom .nc-thumb {
  border-radius: 0 0 var(--nc-radius) var(--nc-radius);
}
.nc-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.nc-card:hover .nc-thumb img,
.nc-card-webzine:hover .nc-thumb img {
  transform: scale(1.04);
}

/* 카드 바디 */
.nc-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* ═══════════════════════════════════════════════════════════
   TYPE 2: 사진 전용 (오버레이 텍스트)
═══════════════════════════════════════════════════════════ */
.nc-card-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  transition: box-shadow var(--nc-transition), transform var(--nc-transition);
  text-decoration: none;
  color: inherit;
}
.nc-card-photo:hover {
  box-shadow: var(--nc-shadow-hover);
  transform: translateY(-2px);
}
.nc-photo-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.nc-card-photo:hover .nc-photo-img {
  transform: scale(1.05);
}
.nc-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}
.nc-photo-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px 12px;
}
.nc-photo-body .nc-meta-row .nc-badge-region,
.nc-photo-body .nc-meta-row .nc-badge-section {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.35);
}
.nc-photo-body .nc-title {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  margin-bottom: 4px;
}
.nc-photo-body .nc-footer {
  color: rgba(255,255,255,.8);
}

/* ═══════════════════════════════════════════════════════════
   TYPE 3: 동영상 카드
═══════════════════════════════════════════════════════════ */
.nc-card-video {
  display: flex;
  flex-direction: column;
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  overflow: hidden;
  box-shadow: var(--nc-shadow);
  transition: box-shadow var(--nc-transition), transform var(--nc-transition);
}
.nc-card-video:hover {
  box-shadow: var(--nc-shadow-hover);
  transform: translateY(-2px);
}
.nc-video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--nc-radius) var(--nc-radius) 0 0;
  background: #1e293b;
}
.nc-video-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  opacity: .9;
  transition: transform .35s ease, opacity .22s ease;
}
.nc-card-video:hover .nc-video-wrap img {
  transform: scale(1.04);
  opacity: .75;
}
/* 플레이 버튼 */
.nc-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  transition: transform .22s ease, background .22s;
  pointer-events: none;
}
.nc-play-btn i {
  font-size: var(--np-fs-base);
  color: #d32f2f;
  margin-left: 3px;
}
.nc-card-video:hover .nc-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #fff;
}
/* VIDEO 태그 */
.nc-video-dur {
  position: absolute;
  bottom: 8px;
  right: 9px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: var(--np-fs-sm);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════════════
   TYPE 4: 제목만 (리스트 아이템)
═══════════════════════════════════════════════════════════ */
.nc-item-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--nc-border);
  transition: background var(--nc-transition);
}
.nc-item-text:last-child { border-bottom: none; }
.nc-item-text:hover { background: #f8fafc; border-radius: var(--nc-radius-xs); padding-left: 6px; }
.nc-item-text .nc-body {
  flex: 1;
  padding: 0;
  gap: 3px;
}
.nc-item-text .nc-title {
  font-size: var(--np-fs-sm);
  margin: 0;
}

/* ── 섹션 구분자형 목록 아이템 (§2 정치 스타일) ───────── */
.nc-list-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--nc-border);
  transition: background var(--nc-transition);
}
.nc-list-item:last-child { border-bottom: none; }
.nc-list-item:hover { background: #f8fafc; padding-left: 5px; border-radius: 3px; }
.nc-list-item::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 7px;
  flex-shrink: 0;
}
.nc-list-item .nc-title {
  font-size: var(--np-fs-sm);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   TYPE 5: 웹진형 (사진 좌/우/상/하 배치)
═══════════════════════════════════════════════════════════ */
/* ③ webzine 카드: 전체 영역 클릭 (::after 오버레이 방식) */
.nc-card-webzine {
  display: flex;
  gap: 12px;
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  overflow: hidden;
  padding: 10px;
  box-shadow: var(--nc-shadow);
  transition: box-shadow var(--nc-transition), transform var(--nc-transition);
  position: relative;
  cursor: pointer;
}
/* 전체 덮는 투명 오버레이 */
.nc-card-webzine > .nc-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* 내부 요소는 모두 클릭 전달만 — pointer-events:none */
.nc-card-webzine .nc-body,
.nc-card-webzine .nc-body * { pointer-events: none; }
.nc-card-webzine:hover {
  box-shadow: var(--nc-shadow-hover);
  transform: translateY(-2px);
}

/* 사진 왼쪽 (기본) */
.nc-card-webzine .nc-thumb {
  width: 120px;
  flex-shrink: 0;
  border-radius: var(--nc-radius-sm);
}
.nc-card-webzine .nc-thumb img {
  width: 120px;
  height: 80px;
  aspect-ratio: unset;
  object-fit: cover;
  border-radius: var(--nc-radius-sm);
}
.nc-card-webzine .nc-body {
  padding: 0;
  flex: 1;
}

/* 사진 오른쪽 */
.nc-card-webzine.photo-right {
  flex-direction: row-reverse;
}

/* 사진 상단 */
.nc-card-webzine.photo-top {
  flex-direction: column;
  padding: 0;
}
.nc-card-webzine.photo-top .nc-thumb {
  width: 100%;
  border-radius: var(--nc-radius) var(--nc-radius) 0 0;
}
.nc-card-webzine.photo-top .nc-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: var(--nc-radius) var(--nc-radius) 0 0;
}
.nc-card-webzine.photo-top .nc-body {
  padding: 10px 12px 12px;
}

/* 사진 하단 */
.nc-card-webzine.photo-bottom-wz {
  flex-direction: column-reverse;
  padding: 0;
}
.nc-card-webzine.photo-bottom-wz .nc-thumb {
  width: 100%;
  border-radius: 0 0 var(--nc-radius) var(--nc-radius);
}
.nc-card-webzine.photo-bottom-wz .nc-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 0 0 var(--nc-radius) var(--nc-radius);
}
.nc-card-webzine.photo-bottom-wz .nc-body {
  padding: 10px 12px 12px;
}

/* Large 웹진 */
.nc-card-webzine.wz-large .nc-thumb {
  width: 180px;
}
.nc-card-webzine.wz-large .nc-thumb img {
  width: 180px;
  height: 120px;
}

/* ═══════════════════════════════════════════════════════════
   TYPE 6: 카드뉴스 (정사각)
═══════════════════════════════════════════════════════════ */
.nc-card-card {
  display: flex;
  flex-direction: column;
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  overflow: hidden;
  box-shadow: var(--nc-shadow);
  transition: box-shadow var(--nc-transition), transform var(--nc-transition);
}
.nc-card-card:hover {
  box-shadow: var(--nc-shadow-hover);
  transform: translateY(-2px);
}
.nc-card-card .nc-thumb {
  border-radius: var(--nc-radius) var(--nc-radius) 0 0;
}
.nc-card-card .nc-thumb img {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
}
/* 카드뉴스 번호 */
.nc-card-no {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: var(--nc-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--np-fs-sm);
  font-weight: 800;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   TYPE 7: 사이드 랭킹 리스트
═══════════════════════════════════════════════════════════ */
.nc-rank-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nc-border);
  transition: background var(--nc-transition);
}
.nc-rank-item:last-child { border-bottom: none; }
.nc-rank-item:hover { background: #f8fafc; padding-left: 4px; border-radius: 3px; }
.nc-rank-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: var(--np-fs-sm);
  font-weight: 800;
  background: #f1f5f9;
  color: #94a3b8;
  flex-shrink: 0;
  margin-top: 2px;
}
.nc-rank-no.top3 {
  background: #d32f2f;
  color: #fff;
}
.nc-rank-body { flex: 1; min-width: 0; }
.nc-rank-title {
  display: block;
  font-size: var(--np-fs-sm);
  font-weight: 600;
  color: var(--nc-text-title);
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.nc-rank-thumb {
  width: 56px;
  height: 40px;
  border-radius: var(--nc-radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}
.nc-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   특수 섹션: 많이 본 / 관심 / 추천 / 긴급 뉴스
═══════════════════════════════════════════════════════════ */
.nc-special-section {
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  overflow: hidden;
}

/* 섹션 헤더 */
.nc-special-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 11px;
  border-bottom: 1px solid var(--nc-border);
  border-left: 4px solid var(--nc-accent);
}
.nc-sh-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--np-fs-base);
  font-weight: 800;
  color: #0f172a;
}
.nc-sh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--nc-radius-xs);
  font-size: var(--np-fs-sm);
}
.nc-sh-icon.hot       { background: #fff3e0; color: #e64a19; }
.nc-sh-icon.trending  { background: #e3f2fd; color: #1565c0; }
.nc-sh-icon.recommend { background: #e8f5e9; color: #2e7d32; }
.nc-sh-icon.breaking  { background: #ffebee; color: #d32f2f; }
.nc-sh-icon.interest  { background: #f3e5f5; color: #7b1fa2; }

.nc-sh-more {
  font-size: var(--np-fs-sm);
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--nc-transition);
}
.nc-sh-more:hover { color: #1565c0; }

/* 특수 섹션 내부 리스트 */
.nc-special-list {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
}
.nc-special-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nc-border);
  transition: background var(--nc-transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.nc-special-item:last-child { border-bottom: none; }
.nc-special-item:hover { background: #f8fafc; margin: 0 -8px; padding: 10px 8px; border-radius: 4px; }
.nc-special-no {
  font-size: var(--np-fs-sm);
  font-weight: 800;
  color: #cbd5e1;
  width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.nc-special-no.rank-1 { color: #d32f2f; }
.nc-special-no.rank-2 { color: #f57c00; }
.nc-special-no.rank-3 { color: #f9a825; }
.nc-special-body { flex: 1; min-width: 0; }
.nc-special-thumb {
  width: 60px;
  height: 42px;
  border-radius: var(--nc-radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}
.nc-special-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.nc-special-item:hover .nc-special-thumb img {
  transform: scale(1.06);
}
.nc-special-title {
  display: block;
  font-size: var(--np-fs-sm);
  font-weight: 600;
  color: var(--nc-text-title);
  text-decoration: none;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.nc-special-item:hover .nc-special-title { color: #1565c0; }

/* ═══════════════════════════════════════════════════════════
   특수 섹션 그리드 (4종 나란히)
═══════════════════════════════════════════════════════════ */
/* ─── nc-spe-wrap: 좌(탭묶음) + 우(언론사) 2단 ─── */
.nc-spe-wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  margin: 28px 0 0;
  align-items: start;
}
/* 좌측 탭 묶음 박스 */
.nc-spe-left {
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  overflow: hidden;
}
/* 탭 버튼 바 */
.nc-spe-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
}
.nc-spe-tab {
  flex: 1;
  padding: 12px 8px;
  font-size: var(--np-fs-sm);
  font-weight: 700;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.nc-spe-tab:hover { color: #1e293b; background: #eff6ff; }
.nc-spe-tab.active {
  color: var(--spe-color, #e64a19);
  border-bottom-color: var(--spe-color, #e64a19);
  background: #fff;
}
/* 탭 콘텐츠 패널 */
.nc-spe-pane { display: none; }
.nc-spe-pane.active { display: block; }


.nc-special-col {
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  overflow: hidden;
}

/* ═══ 언론사 패널 ═══ */
.nc-media-panel {
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* 언론사 타이틀 헤더 */
.nc-media-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 2px solid #1565c0;
  background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
}
.nc-media-head-icon {
  width: 26px;
  height: 26px;
  background: #1565c0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--np-fs-sm);
  flex-shrink: 0;
}
.nc-media-head-title {
  font-size: var(--np-fs-base);
  font-weight: 800;
  color: #1565c0;
  letter-spacing: -.3px;
}
/* 지역 탭 버튼 */
.nc-media-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow-x: auto;
  scrollbar-width: none;
}
.nc-media-tabs::-webkit-scrollbar { display: none; }
.nc-media-tab-btn {
  flex: 1;
  padding: 7px 4px;
  font-size: var(--np-fs-sm);
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.nc-media-tab-btn:hover { color: #1565c0; background: #eff6ff; }
.nc-media-tab-btn.active {
  color: #1565c0;
  border-bottom-color: #1565c0;
  background: #fff;
  font-weight: 700;
}
/* 언론사 목록 */
.nc-media-list {
  display: none;
  flex-direction: column;
  padding: 6px 0;
}
.nc-media-list.active { display: flex; }
.nc-media-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: #334155;
  font-size: var(--np-fs-sm);
  border-bottom: 1px solid #f1f5f9;
  transition: background .12s, color .12s;
}
.nc-media-item:last-child { border-bottom: none; }
.nc-media-item:hover { background: #eff6ff; color: #1565c0; }
.nc-media-item:hover .nc-media-arrow { opacity: 1; color: #1565c0; }
.nc-media-no {
  width: 18px;
  height: 18px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--np-fs-sm);
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}
.nc-media-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.nc-media-arrow {
  font-size: var(--np-fs-sm);
  color: #cbd5e1;
  opacity: 0;
  transition: opacity .12s;
  flex-shrink: 0;
}

/* 긴급뉴스 강조 헤더 */
.nc-special-head.breaking {
  border-left-color: #d32f2f;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}
.nc-special-head.hot      { border-left-color: #e64a19; background: linear-gradient(135deg, #fff3e0 0%, #fff 100%); }
.nc-special-head.interest { border-left-color: #7b1fa2; background: linear-gradient(135deg, #f3e5f5 0%, #fff 100%); }
.nc-special-head.recommend{ border-left-color: #1565c0; background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%); }

/* ═══════════════════════════════════════════════════════════
   광고 배너
═══════════════════════════════════════════════════════════ */
.nc-ad-wrap {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.nc-ad-title {
  font-size: var(--np-fs-sm);
  color: #b0bec5;
  letter-spacing: .08em;
  font-weight: 500;
  text-transform: uppercase;
}
.nc-ad-banner {
  position: relative;
  width: 100%;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--nc-radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--nc-transition), border-color var(--nc-transition);
}
.nc-ad-banner:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.nc-ad-banner.banner-full {
  height: 90px;
  max-width: 1200px;
}
.nc-ad-banner.banner-728 {
  height: 90px;
  max-width: 728px;
}
.nc-ad-banner.banner-rect {
  height: 250px;
  max-width: 300px;
}
.nc-ad-label {
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: var(--np-fs-sm);
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .06em;
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 2px;
}
.nc-ad-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: var(--np-fs-sm);
  color: #94a3b8;
  font-weight: 500;
}
.nc-ad-inner i { font-size: var(--np-fs-xl); opacity: .5; }

/* ═══════════════════════════════════════════════════════════
   섹션 헤더 (ncSecHead)
═══════════════════════════════════════════════════════════ */
.nc-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 12px;
  border-bottom: 1px solid var(--nc-border);
}
.nc-sec-hd-title {
  font-size: var(--np-fs-base);
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.nc-sec-hd-title i { font-size: var(--np-fs-sm); }
.nc-sec-hd-more {
  font-size: var(--np-fs-sm);
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color var(--nc-transition);
}
.nc-sec-hd-more:hover { color: #475569; }

/* ═══════════════════════════════════════════════════════════
   그리드 레이아웃 — 섹션 내부
═══════════════════════════════════════════════════════════ */
/* 2열 */
.nc-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 14px 16px 16px;
}
/* 3열 */
.nc-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 14px 16px 16px;
}
/* 4열 */
.nc-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 14px 16px 16px;
}
/* 5열 */
.nc-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 14px 16px 16px;
}
/* 제목만 리스트 */
.nc-grid-list {
  display: flex;
  flex-direction: column;
  padding: 6px 16px 14px;
}
/* 웹진 2열 */
.nc-grid-webzine {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 14px 16px 16px;
}
/* 3열 + 사이드 */
.nc-grid-3side {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  padding: 14px 16px 16px;
}
.nc-grid-3side-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* 오피니언 3열 */
.nc-grid-opinion {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 14px 16px 16px;
}
/* 대표+목록 (§정치 스타일) */
.nc-grid-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 14px 16px 16px;
}
.nc-featured-main { padding-right: 16px; border-right: 1px solid var(--nc-border); }
.nc-featured-list { padding-left: 16px; }

/* ═══════════════════════════════════════════════════════════
   대표 기사 (featured) 스타일
═══════════════════════════════════════════════════════════ */
.nc-featured-card {
  display: flex;
  flex-direction: column;
}
.nc-featured-card .nc-thumb {
  border-radius: var(--nc-radius);
  margin-bottom: 10px;
}
.nc-featured-card .nc-thumb img {
  aspect-ratio: 16/9;
  border-radius: var(--nc-radius);
}
.nc-featured-card:hover .nc-thumb img {
  transform: scale(1.03);
}
.nc-featured-title {
  font-size: var(--np-fs-base);
  font-weight: 800;
  color: var(--nc-text-title);
  line-height: 1.5;
  margin: 0 0 6px;
  word-break: keep-all;
}
.nc-featured-title a {
  color: inherit;
  text-decoration: none;
}
.nc-featured-title a:hover { color: #1565c0; }
.nc-featured-lead {
  font-size: var(--np-fs-sm);
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 8px;
}

/* ═══════════════════════════════════════════════════════════
   오피니언 카드 (필자 아바타 포함)
═══════════════════════════════════════════════════════════ */
.nc-opinion-card {
  display: flex;
  flex-direction: column;
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  overflow: hidden;
  box-shadow: var(--nc-shadow);
  transition: box-shadow var(--nc-transition), transform var(--nc-transition);
  position: relative;
}
.nc-opinion-card > .nc-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.nc-opinion-card .nc-body {
  position: relative;
  z-index: 2;
}
.nc-opinion-card:hover {
  box-shadow: var(--nc-shadow-hover);
  transform: translateY(-2px);
}
.nc-opinion-card .nc-thumb img { aspect-ratio: 16/9; }
.nc-opinion-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.nc-opinion-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #bf360c;
  color: #fff;
  font-size: var(--np-fs-sm);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nc-opinion-author {
  font-size: var(--np-fs-sm);
  font-weight: 700;
  color: #475569;
}

/* ═══════════════════════════════════════════════════════════
   사이드바: 랭킹 위젯
═══════════════════════════════════════════════════════════ */
.nc-side-widget {
  background: var(--nc-bg);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  overflow: hidden;
}
.nc-side-head {
  padding: 11px 14px 10px;
  font-size: var(--np-fs-sm);
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid var(--nc-border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nc-side-head i { color: #e64a19; font-size: var(--np-fs-sm); }
.nc-side-list {
  display: flex;
  flex-direction: column;
  padding: 4px 12px 8px;
}

/* ═══════════════════════════════════════════════════════════
   반응형
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .nc-grid-4col { grid-template-columns: repeat(3, 1fr); }
  .nc-grid-5col { grid-template-columns: repeat(4, 1fr); }
  .nc-special-4grid { grid-template-columns: repeat(2, 1fr); }
  .nc-spe-wrap { grid-template-columns: 1fr 200px; }
  .nc-grid-3side { grid-template-columns: 1fr 190px; }
}

@media (max-width: 900px) {
  .nc-grid-4col,
  .nc-grid-3col,
  .nc-grid-webzine,
  .nc-grid-opinion { grid-template-columns: repeat(2, 1fr); }
  .nc-grid-5col { grid-template-columns: repeat(3, 1fr); }
  .nc-grid-3side { grid-template-columns: 1fr; }
  .nc-grid-3side-inner { grid-template-columns: repeat(2, 1fr); }
  .nc-grid-featured { grid-template-columns: 1fr; }
  .nc-featured-main { padding-right: 0; border-right: none; border-bottom: 1px solid var(--nc-border); padding-bottom: 14px; margin-bottom: 8px; }
  .nc-featured-list { padding-left: 0; }
  .nc-special-4grid { grid-template-columns: repeat(2, 1fr); }
  .nc-spe-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nc-grid-4col,
  .nc-grid-3col,
  .nc-grid-opinion,
  .nc-grid-webzine,
  .nc-grid-2col { grid-template-columns: 1fr; }
  .nc-grid-5col { grid-template-columns: repeat(2, 1fr); }
  .nc-special-4grid { grid-template-columns: 1fr; }
  .nc-spe-wrap { grid-template-columns: 1fr; }
  .nc-card-webzine.wz-large .nc-thumb,
  .nc-card-webzine.wz-large .nc-thumb img { width: 100px; height: 70px; }
  .nc-ad-banner.banner-728 { max-width: 100%; }
}
