/* ============================================================
   SBS뉴스 2026 — 비주얼 버전 전용 스타일 (visual.html)
   토큰·폰트·헤더·푸터·버튼·배지·엔딩·숏뉴스 카드·시각요소(.sv)는 style.css 공용.
   원칙: 한 화면에 메시지 하나, 큰 글자·색 블록·이미지 우선, 읽을 글은 최소.
   ============================================================ */

/* 스크롤 진행 막대 */
.v-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--teal-400); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
.v-full-link {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.35); color: var(--white); font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease;
}
.v-full-link:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
html.v-lock { overflow: hidden; }

/* ─── HERO ───────────────────────────────────────────── */
.v-hero {
  position: relative; overflow: hidden; background: var(--blue-700); color: var(--white);
  min-height: calc(100svh - var(--header-h) - 32px); display: grid; grid-template-rows: 1fr auto;
}
.v-hero .wrap { align-self: center; display: grid; gap: 14px; padding-block: 48px 40px; }
.v-hero-kicker { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--on-dark-2); }
.v-hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); }
.v-hero-year {
  margin: 0; display: flex; white-space: nowrap; font-weight: 900; line-height: .82; letter-spacing: -0.05em;
  font-size: clamp(96px, 29vw, 320px); color: var(--white);
}
.v-hero-year .last { color: var(--teal-400); }
.v-hero-title { margin: 8px 0 0; font-size: clamp(30px, 7.4vw, 56px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.v-hero-sub { margin: 0; font-size: clamp(15px, 3.8vw, 19px); line-height: 1.55; color: var(--on-dark-2); word-break: keep-all; }

/* 이슈 이름이 흐르는 띠 */
.v-ticker { border-top: 1px solid var(--on-dark-line); padding: 14px 0; overflow: hidden; }
.v-ticker-track { display: flex; width: max-content; animation: v-ticker 48s linear infinite; }
.v-ticker-line { display: flex; flex: none; }
.v-ticker-line span {
  display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; white-space: nowrap;
  font-size: clamp(18px, 4.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; color: rgba(255,255,255,0.9);
}
.v-ticker-line span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); }
@keyframes v-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── 공통 섹션 머리 ─────────────────────────────────── */
.v-sec { padding-block: 72px; }
.v-sec--alt { background: var(--bg-alt); }
.v-sec--dark { background: var(--blue-900); color: var(--white); }
.v-head { display: grid; gap: 6px; margin-bottom: 28px; }
.v-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.v-head--row .scroll-nav { margin-bottom: 0; }
.v-kicker { margin: 0; font-size: 14px; font-weight: 800; color: var(--teal-600); letter-spacing: -0.01em; }
.v-sec--dark .v-kicker { color: var(--teal-400); }
.v-title { margin: 0; font-size: clamp(30px, 7.6vw, 56px); line-height: 1.12; font-weight: 900; letter-spacing: -0.04em; word-break: keep-all; }
@media (min-width: 900px) { .v-sec { padding-block: 112px; } .v-head { margin-bottom: 40px; } }

/* ─── 1. 장면 모자이크 ───────────────────────────────── */
.v-mosaic {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense;
}
@media (min-width: 640px) { .v-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }   /* 2·4열: 큰 타일 수를 맞춰 빈칸 없음 */
.v-tile { min-width: 0; aspect-ratio: 1 / 1; }
.v-tile.is-big { grid-column: span 2; grid-row: span 2; }
.v-tile-btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: var(--white); background: var(--blue-700);
}
.v-tile-btn:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.v-tile-media, .v-tile-media img, .v-tile-media .v-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-tile-media img { object-fit: cover; transition: filter 200ms ease; }
.v-tile-btn:hover .v-tile-media img, .v-tile-btn:hover .v-ph { filter: brightness(.88); }
/* 사진 위 글자를 읽히게 하는 하단 어둡게 (디자인 시스템 이미지 카드 A 방식) */
.v-tile-btn::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.6)); pointer-events: none; }
.v-tile-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 2px; padding: 12px; }
.v-tile-cap .d { font-size: 12px; font-weight: 700; color: var(--teal-400); }
.v-tile-cap .t { font-size: 16px; line-height: 21px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.v-tile.is-big .v-tile-cap { padding: 18px; }
.v-tile.is-big .v-tile-cap .d { font-size: 14px; }
.v-tile.is-big .v-tile-cap .t { font-size: clamp(22px, 5.4vw, 34px); line-height: 1.2; }

/* 자리표시: 브랜드 색 + 큰 월 숫자 */
.v-ph { display: block; background: var(--blue-700); transition: filter 200ms ease; }
.v-ph[data-tone="0"] { background: var(--blue-700); }
.v-ph[data-tone="1"] { background: var(--blue-500); }
.v-ph[data-tone="2"] { background: var(--teal-600); }
.v-ph[data-tone="3"] { background: var(--n-800); }
.v-ph[data-tone="4"] { background: var(--blue-900); }
.v-ph[data-tone="5"] { background: var(--red-600); }
.v-ph-num {
  position: absolute; top: 6px; right: 10px; font-size: clamp(48px, 16vw, 96px); line-height: 1; font-weight: 900;
  letter-spacing: -0.05em; color: rgba(255,255,255,0.18);
}
.v-tile.is-big .v-ph-num { font-size: clamp(96px, 30vw, 200px); }

/* 장면 카드 (dialog) */
.v-sheet {
  width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--white); color: var(--text-1); box-shadow: var(--shadow-md, var(--shadow-sm));
  overflow: auto;
}
.v-sheet::backdrop { background: rgba(0,0,0,0.6); }
.v-sheet-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.v-sheet-media img, .v-sheet-media .v-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-sheet-text { display: grid; gap: 10px; padding: 20px 20px 24px; }
.v-sheet-text .d { margin: 0; font-size: 13px; font-weight: 700; color: var(--teal-600); }
.v-sheet-text h3 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.03em; }
.v-sheet-text .s { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-2); word-break: keep-all; }
/* 대표 기사 제목 목록 */
.v-sheet-arts { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--n-100); }
.v-sheet-arts .lbl { margin: 0 0 4px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--teal-600); }
.v-sheet-arts ul { list-style: none; margin: 0; padding: 0; }
.v-sheet-arts li + li { border-top: 1px solid var(--n-100); }
.v-sheet-arts a { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 10px 0; color: var(--text-1); text-decoration: none; }
.v-sheet-arts .t { font-size: 15px; line-height: 22px; font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; transition: color 200ms ease; }
.v-sheet-arts a svg { width: 16px; height: 16px; color: var(--blue-700); }
.v-sheet-arts a:hover .t { color: var(--blue-500); }
.v-sheet-arts a:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; border-radius: var(--r-sm); }
.v-sheet-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,0.5); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.v-sheet-close svg { width: 18px; height: 18px; }
.v-sheet-close:hover { background: rgba(0,0,0,0.7); }
.v-sheet-close:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
/* 그 후 질문 말풍선 (기존 페이지와 같은 모양) */
.v-q {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 32px; gap: 10px; align-items: center; margin-top: 4px;
  padding: 12px 12px 12px 14px; border: 1.5px solid var(--blue-700); border-radius: 12px 12px 12px 2px;
  color: var(--text-1); text-decoration: none; transition: background 200ms ease;
}
.v-q .q { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-700); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; }
.v-q strong { font-size: 15px; line-height: 22px; font-weight: 700; letter-spacing: -0.02em; word-break: keep-all; }
.v-q .go { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); display: inline-flex; align-items: center; justify-content: center; transition: background 200ms ease, color 200ms ease; }
.v-q .go svg { width: 16px; height: 16px; }
.v-q:hover { background: var(--blue-50); }
.v-q:hover .go { background: var(--blue-700); color: var(--white); }
@media (max-width: 639px) {
  /* 모바일은 아래에서 올라오는 시트 */
  .v-sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 88svh; }
}

/* ─── 2. 숫자: 화면 하나에 숫자 하나 ─────────────────── */
.v-numbers { display: grid; }
.v-num {
  display: grid; gap: 20px; align-items: center; padding-block: 36px; border-top: 1px solid var(--on-dark-line); min-width: 0;
}
.v-num:last-child { border-bottom: 1px solid var(--on-dark-line); }
.v-num-text { display: grid; gap: 8px; min-width: 0; }
.v-num-verb { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--on-dark-2); }
.v-num-verb .ico { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,217,215,0.14); color: var(--teal-400); display: inline-flex; align-items: center; justify-content: center; }
.v-num-verb .ico svg { width: 16px; height: 16px; }
.v-num-big { margin: 0; font-size: clamp(64px, 19vw, 148px); line-height: .95; font-weight: 900; letter-spacing: -0.05em; color: var(--teal-400); white-space: nowrap; }
.v-num-big .u { font-size: .36em; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.v-num-cap { margin: 0; font-size: clamp(18px, 4.6vw, 26px); line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.v-num-note { margin: 0; font-size: 14px; line-height: 21px; color: var(--on-dark-2); word-break: keep-all; }
.v-num-viz { justify-self: start; }
.v-num-viz .sv-pulse { width: 120px; height: 120px; }
.v-num-viz .sv-pulse .beat { width: 26px; height: 26px; }
.v-num-viz .sv-ring svg, .v-num-viz .sv-ring .pct { width: 120px; height: 120px; }
.v-num-viz .sv-ring .pct { font-size: 28px; }
.v-num-viz .lbl { font-size: 13px; }
.v-num-big .txt { letter-spacing: -0.04em; }
/* 막대 그림은 넓게: 칸을 꽉 채우고 그 안에서 최대 300px */
.v-num-viz:has(.sv-moment), .v-num-viz:has(.sv-day) { justify-self: stretch; }
.v-num-viz .sv-moment { width: min(100%, 300px); max-width: none; }
.v-num-viz .sv-moment .axis { font-size: 12px; }
.v-num-viz .sv-day { width: min(100%, 320px); max-width: none; }
.v-num-viz .sv-day .track { height: 12px; border-radius: 6px; }
.v-num-viz .sv-day .ticks { font-size: 11px; }
.v-num-viz .sv-day .slots { height: 40px; }
.v-num-viz .sv-day .sl { font-size: 12px; line-height: 17px; }
.v-num-viz .sv-day .sl b { font-size: 14px; }
.v-num-viz .sv-topics { max-width: 300px; }
.v-num-viz .sv-topics ul { gap: 8px; }
.v-num-viz .sv-topics li { padding: 7px 14px; font-size: 14px; line-height: 20px; }
.v-num-viz .sv-cal .cal { gap: 6px; padding: 12px 14px 14px; }
.v-num-viz .sv-cal .m { font-size: 14px; line-height: 18px; }
.v-num-viz .sv-cal .wk, .v-num-viz .sv-cal .days { grid-template-columns: repeat(7, 16px); gap: 5px; }
.v-num-viz .sv-cal .wk span { font-size: 10px; line-height: 12px; }
.v-num-viz .sv-cal .days b, .v-num-viz .sv-cal .days i { width: 16px; height: 16px; border-radius: 3px; }
@media (min-width: 900px) {
  .v-num { grid-template-columns: minmax(0, 1fr) 260px; padding-block: 56px; }
  .v-num-viz { justify-self: center; }
}

/* ─── 3. 반응: 반응마다 1위 하나 ─────────────────────── */
.v-react { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .v-react { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.v-react-item { min-width: 0; }
/* 반응 카드: 머리(아이콘·이름·설명) + 기사 3개 목록(기사마다 링크) */
.v-react-card { height: 100%; display: grid; align-content: start; gap: 16px; padding: 22px; border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-sm); }
.v-react-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.v-react-art { width: 56px; height: 56px; }
.v-react-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.v-react-art .ph { width: 100%; height: 100%; border-radius: var(--r-md); background: var(--bg-alt); color: var(--blue-700); display: flex; align-items: center; justify-content: center; }
.v-react-art .ph svg { width: 26px; height: 26px; }
.v-react-text { display: grid; gap: 2px; min-width: 0; }
.v-react-text b { font-size: 19px; line-height: 26px; font-weight: 800; letter-spacing: -0.02em; }
.v-react-text .why { font-size: 13px; line-height: 19px; color: var(--text-3); }
.v-react-list { list-style: none; margin: 0; padding: 0; display: grid; }
.v-react-list li + li { border-top: 1px solid var(--n-100); }
.v-react-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 96px; gap: 12px; align-items: center; padding: 10px 0; color: var(--text-1); text-decoration: none; }
.v-react-row .rk { font-size: 15px; font-weight: 900; color: var(--blue-700); text-align: center; }
.v-react-row .t { font-size: 14px; line-height: 20px; font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 200ms ease; }
.v-react-row .th { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-alt); }
.v-react-row .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-react-row:hover .t { color: var(--blue-500); }
.v-react-row:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; border-radius: var(--r-sm); }
@media (min-width: 900px) { .v-react-card { padding: 28px; } .v-react-head { grid-template-columns: 64px minmax(0, 1fr); } .v-react-art { width: 64px; height: 64px; } .v-react-row { grid-template-columns: 18px minmax(0, 1fr) 112px; } }

/* ─── 4. 숏뉴스 (style.css 의 .shorts-row/.short 재사용) ─ */
.v-page .short-body strong { font-size: 14px; line-height: 20px; }

/* ─── 5. 올해의 SBS뉴스: 큰 사진 3장 ─────────────────── */
/* 질문 카드 줄: 가로로 넘김 — PC 3장, 모바일 한 장 남짓 */
.v-picks { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.v-picks::-webkit-scrollbar { display: none; }
.v-picks > .v-pick { scroll-snap-align: start; }
@media (min-width: 640px) { .v-picks { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; } }
.v-pick {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  color: var(--white); text-decoration: none; background: var(--blue-700);
}
@media (max-width: 639px) { .v-pick { aspect-ratio: 4 / 3; } }
.v-pick-media, .v-pick-media img, .v-pick-media .v-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-pick-media img { object-fit: cover; transition: filter 200ms ease; }
.v-pick:hover .v-pick-media img, .v-pick:hover .v-ph { filter: brightness(.88); }
.v-pick::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.7)); pointer-events: none; }
.v-pick-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 12px; justify-items: start; padding: 22px; }
.v-pick-cap .q { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-400); color: var(--blue-900); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 900; }
.v-pick-cap strong { font-size: clamp(21px, 5.4vw, 26px); line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; word-break: keep-all; }
.v-pick-art { display: grid; gap: 2px; width: 100%; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.28); }
.v-pick-art .lbl { font-size: 11px; line-height: 15px; font-weight: 700; color: var(--teal-400); }
.v-pick-art .t { font-size: 13px; line-height: 18px; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-pick:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 3px; }

/* ─── 엔딩 ───────────────────────────────────────────── */
.v-ending-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── 등장 모션 (화면 아래 요소만, 들어올 때 차례로) ───── */
.v-pre { opacity: 0; transform: translateY(20px); }
.v-pre.is-in { opacity: 1; transform: none; transition: opacity 640ms ease-out, transform 640ms ease-out; transition-delay: var(--v-delay, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .v-ticker-track { animation: none; }
  .v-pre, .v-pre.is-in { opacity: 1; transform: none; transition: none; }
  .v-full-link, .v-tile-media img, .v-ph, .v-q, .v-q .go, .v-react-row .t { transition: none; }
}
.v-num-text .sc-link { margin-top: 6px; max-width: 520px; }
