/* ============================================================
   SBS뉴스 2026 올해의 뉴스 — 스타일
   레이아웃: 모바일 우선 단일 세로 스크롤. 흰 바탕 섹션과 네이비 밴드(히어로·숫자·엔딩)를
   번갈아 배치해 섹션 전환을 만든다. PC에서는 최대 1080px 중앙 정렬.
   토큰은 SBS NEWS Design System(colors_and_type.css) 값을 그대로 사용.
   ============================================================ */

@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
  /* Brand */
  --blue-50: #EFF4FF;
  --blue-100: #D8E4FF;
  --blue-400: #366DE8;
  --blue-500: #284ACD;
  --blue-600: #1C3491;
  --blue-700: #12287D;   /* brand primary */
  --blue-800: #121F65;
  --blue-900: #071251;
  --teal-400: #00D9D7;   /* brand secondary */
  --teal-600: #009492;
  --red-500: #EF1C42;
  --red-600: #C91837;
  --yellow-500: #EDC708;

  /* Neutral */
  --n-50: #F4F4F4;
  --n-100: #EDEDED;
  --n-150: #E6E6E6;
  --n-200: #DDDDDD;
  --n-300: #CCCCCC;
  --n-400: #AAAAAA;
  --n-500: #898989;
  --n-600: #666666;
  --n-700: #333333;
  --n-800: #222222;
  --n-900: #1E1E1E;
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--n-50);
  --text-1: var(--n-900);
  --text-2: var(--n-700);
  --text-3: var(--n-600);
  --text-4: var(--n-500);
  --border: var(--n-100);
  --border-strong: var(--n-300);
  --on-dark-1: #FFFFFF;
  --on-dark-2: rgba(255,255,255,0.78);
  --on-dark-3: rgba(255,255,255,0.56);
  --on-dark-line: rgba(255,255,255,0.16);

  /* Type */
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* Radius / shadow */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 9999px;
  --shadow-sm: 0px 4px 6px -2px rgba(16,24,40,0.03), 0px 12px 16px -4px rgba(16,24,40,0.08);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1080px;
  --nav-h: 48px;
  --header-h: 52px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--blue-700);
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; border-radius: var(--r-sm); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
@media (min-width: 768px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--blue-700); color: var(--white);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 18px; width: auto; }
.site-header .header-title { font-size: 14px; font-weight: 700; letter-spacing: -0.1px; display: flex; align-items: center; gap: 8px; }
.site-header .header-title b { color: var(--teal-400); font-weight: 800; }

/* Section nav (sticky under header) */
.section-nav {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 49;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.section-nav ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; height: var(--nav-h); align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.section-nav ol::-webkit-scrollbar { display: none; }
.section-nav a {
  display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 10px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--text-3);
  border-bottom: 2px solid transparent; transition: color 200ms ease, border-color 200ms ease;
}
.section-nav a .idx { font-size: 11px; font-weight: 700; color: var(--text-4); }
.section-nav a:hover { color: var(--text-1); }
.section-nav a[aria-current="true"] { color: var(--blue-700); font-weight: 700; border-bottom-color: var(--blue-700); }
.section-nav a[aria-current="true"] .idx { color: var(--blue-700); }

/* Sample notice */
.sample-bar { background: var(--n-800); color: var(--on-dark-2); font-size: 12px; line-height: 16px; }
.sample-bar .wrap { padding-block: 8px; display: flex; gap: 8px; align-items: center; }
.sample-bar strong { color: var(--yellow-500); font-weight: 700; white-space: nowrap; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border-radius: var(--r-sm); font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  background: var(--blue-700); color: var(--white);
}
.badge--subtle { background: var(--blue-50); color: var(--blue-700); }
.badge--danger { background: var(--red-500); color: var(--white); }
.badge--exclusive { background: var(--blue-800); color: var(--white); }
.badge--award { background: var(--yellow-500); color: var(--n-900); }
.badge--teal { background: var(--teal-400); color: var(--blue-900); }
.badge--ghost { background: transparent; color: var(--text-3); border: 1px solid var(--border-strong); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero { background: var(--blue-700); color: var(--on-dark-1); overflow: hidden; }
/* 위에서 아래로 한 흐름: 영문 키커 → 큰 2026 → 소개 문장 → 집계 기간 */
.hero .wrap { padding-block: 40px 40px; display: grid; gap: 0; justify-items: start; }
.hero-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--on-dark-2); letter-spacing: .04em; }
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); }
.hero-year {
  margin: 0; font-weight: 900; line-height: .86; letter-spacing: -0.04em;
  font-size: clamp(96px, 30vw, 248px);
  color: var(--white);
  display: flex; align-items: flex-end; gap: .04em;
}
.hero-year .last { color: var(--teal-400); }
.hero-title { margin: 0; font-size: clamp(26px, 6.4vw, 44px); line-height: 1.22; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.hero-text { display: grid; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--on-dark-line); width: 100%; }
.hero-sub { margin: 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; font-weight: 500; color: var(--on-dark-1); word-break: keep-all; }
.hero-sub .br-pc { display: none; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--on-dark-3); }


@media (min-width: 900px) {
  .hero .wrap { padding-block: 64px 56px; }
  .hero-kicker { margin-bottom: 18px; }
  .hero-text { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; margin-top: 32px; padding-top: 24px; }
  .hero-sub .br-pc { display: inline; }
  .hero-meta { justify-content: flex-end; }
}

/* ─── Section shell ─────────────────────────────────────── */
.sec { padding-block: 56px; }
.sec--alt { background: var(--bg-alt); }
.sec--dark { background: var(--blue-900); color: var(--on-dark-1); }
/* 섹션 머리: [번호] 제목 을 한 줄로, 설명은 아래 전체 폭 */
.sec-head { --title-fs: clamp(26px, 5.6vw, 36px); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 12px; align-items: start; margin-bottom: 32px; }
.sec-eyebrow { grid-column: 1; grid-row: 1; display: flex; align-items: center; height: calc(var(--title-fs) * 1.25); }   /* 제목 첫 줄 높이에 맞춰 가운데 */
.sec-eyebrow .idx { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 7px; border-radius: var(--r-sm); background: var(--blue-700); color: var(--white); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.sec--dark .sec-eyebrow { color: var(--teal-400); }
.sec--dark .sec-eyebrow .idx { background: var(--teal-400); color: var(--blue-900); }
.sec-title { grid-column: 2; grid-row: 1; margin: 0; font-size: var(--title-fs); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.sec-desc { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 24px; color: var(--text-3); word-break: keep-all; }
/* 머리 오른쪽에 넘김 버튼이 붙는 섹션: [번호] 제목 · 설명 | 버튼(아래 맞춤) */
.sec-head--tools { grid-template-columns: auto minmax(0, 1fr) auto; }
.sec-head--tools .sec-desc { grid-column: 1 / 3; }
.sec-head .sec-tools { grid-column: 3; grid-row: 1 / span 2; align-self: end; margin: 0; }
.sec--dark .sec-desc { color: var(--on-dark-2); }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.sub-head h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.sub-head .aside { font-size: 12px; color: var(--text-4); white-space: nowrap; }
.sec--dark .sub-head .aside { color: var(--on-dark-3); }
.block + .block { margin-top: 48px; }
@media (min-width: 768px) { .sec { padding-block: 80px; } .sec-head { margin-bottom: 44px; } }   /* 섹션 기본 여백 88 → 80 */

/* ─── Thumbnail (image or placeholder) ───────────────────── */
.thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--blue-600); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter 200ms ease; }
.thumb .ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 10px 12px; color: rgba(255,255,255,0.92);
}
.thumb .ph-mark { font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .8; }
.thumb .ph-num { font-size: 44px; font-weight: 900; line-height: .9; letter-spacing: -0.04em; opacity: .28; }
.thumb[data-tone="0"] { background: var(--blue-700); }
.thumb[data-tone="1"] { background: var(--blue-500); }
.thumb[data-tone="2"] { background: var(--teal-600); }
.thumb[data-tone="3"] { background: var(--n-800); }
.thumb[data-tone="4"] { background: var(--blue-900); }
.thumb[data-tone="5"] { background: var(--red-600); }

/* ─── 01. Timeline ──────────────────────────────────────── */
.htl-item[hidden] { display: none; }

/* 흐르는 이슈 썸네일 — 대표 썸네일이 끝없이 흐르고, 올리면(누르면) 멈춤 + 이슈명 */
.ix { margin-bottom: 32px; }
.mq { overflow: hidden; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: 4px 0; }
.mq-rows { display: grid; gap: 14px; }
.mq-track { display: flex; width: max-content; animation: mq-flow var(--mq-dur, 60s) linear infinite; }
.mq-track.rev { animation-direction: reverse; }   /* 아랫줄은 반대 방향 */
.mq:hover .mq-track, .mq.is-paused .mq-track { animation-play-state: paused; }
@keyframes mq-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-set { list-style: none; margin: 0; padding: 0 0 0 14px; display: flex; gap: 14px; }
.ix-item { flex: none; }
.ix-chip {
  position: relative; display: block; width: 240px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--r-md);
  overflow: hidden; background: var(--blue-700); color: var(--white); font: inherit; text-align: left; cursor: pointer;
  transition: opacity 200ms ease;
}
.mq-media, .mq-media img, .mq-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.mq-media img { object-fit: cover; transition: filter 200ms ease; }
/* 썸네일 위 아주 약한 딤 (사진 톤을 고르게, 흰 배경과 경계 정리) */
.mq-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.15); pointer-events: none; }
.mq-ph { display: block; transition: filter 200ms ease; }
.mq-ph[data-tone="0"] { background: var(--blue-700); }
.mq-ph[data-tone="1"] { background: var(--blue-500); }
.mq-ph[data-tone="2"] { background: var(--teal-600); }
.mq-ph[data-tone="3"] { background: var(--n-800); }
.mq-ph[data-tone="4"] { background: var(--blue-900); }
.mq-ph[data-tone="5"] { background: var(--red-600); }
.mq-ph .n { position: absolute; right: 10px; bottom: 0; font-size: 80px; line-height: 1; font-weight: 900; letter-spacing: -0.05em; color: rgba(255,255,255,0.2); }
/* 이슈명: PC는 마우스를 올렸을 때만 (사진 위 어둡게 + 날짜·이름) */
.mq-name {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 10px 12px;
  background: rgba(7,18,81,0.72); opacity: 0; transition: opacity 200ms ease;
}
.mq-name .d { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--teal-400); }
.mq-name .k { font-size: 18px; line-height: 24px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.ix-chip:hover .mq-name, .ix-chip:focus-visible .mq-name { opacity: 1; }
.ix-chip:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 2px; }
/* 지금 타임라인에서 보고 있는 이슈 */
.ix-item.is-on .ix-chip::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--teal-400); pointer-events: none; }
/* 모바일(마우스 없음): 이름은 늘 아래에 작게 */
@media (hover: none) {
  .mq-name { opacity: 1; background: none; padding: 8px 10px; }
  .ix-chip::before { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(0,0,0,0.6)); pointer-events: none; }
  .mq-name .k { font-size: 15px; line-height: 20px; }
}
@media (max-width: 639px) { .ix-chip { width: 176px; } .mq-ph .n { font-size: 60px; } .mq-set { gap: 8px; padding-left: 8px; } .mq-rows { gap: 8px; } }
/* 움직임 줄이기: 흐르지 않고 손으로 넘기는 줄 */
.mq.is-static { overflow-x: auto; scrollbar-width: none; }
.mq.is-static .mq-track { animation: none; }
.mq.is-static .mq-set[aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .ix-chip, .mq-media img, .mq-ph, .mq-name { transition: none; } }

/* 이슈 타임라인 — 가로 스크롤 (보도 시작일 순) */
.htl { --gap: 16px; scroll-margin-top: calc(var(--header-h) + var(--nav-h) + 16px); }
.htl-head { align-items: center; margin-bottom: 4px; }   /* 왼쪽 '타임라인' 제목, 오른쪽 이전/다음(모바일은 스와이프) */
.htl-row {
  list-style: none; margin: 0; padding: 0 0 16px; position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
}
@media (min-width: 640px) { .htl-row { grid-auto-columns: calc((100% - var(--gap) * 2) / 2.4); } }
@media (min-width: 900px) { .htl-row { grid-auto-columns: calc((100% - var(--gap) * 3) / 3.3); } }
/* 카드는 내용 길이만큼만 (옆 카드 높이에 맞춰 늘어나지 않음) */
.htl-item { display: grid; grid-template-rows: auto auto; align-content: start; align-self: start; scroll-snap-align: start; min-width: 0; outline: none; }
.htl-rail { position: relative; height: 48px; }
.htl-rail::before {
  content: ""; position: absolute; left: 0; right: calc(-1 * var(--gap)); top: 33px; height: 2px; background: var(--blue-100);
}
.htl-item:last-child .htl-rail::before, .htl-item.is-last .htl-rail::before { right: 0; }
.htl-month { position: absolute; left: 0; top: 0; font-size: 13px; line-height: 18px; font-weight: 800; color: var(--teal-600); }
.htl-rail .dot {
  position: absolute; left: 0; top: 27px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue-700); box-shadow: 0 0 0 3px var(--white);
}
.htl-date { position: absolute; left: 22px; top: 25px; padding: 0 6px; background: var(--white); font-size: 14px; line-height: 18px; font-weight: 800; color: var(--text-1); }
.htl-card {
  display: grid; grid-template-rows: auto auto; align-self: start; min-width: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
}
.htl-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; min-width: 0; }
.htl-title { margin: 0; font-size: 21px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.htl-summary { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-2); word-break: keep-all; }
.htl-articles { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.htl-articles a { display: block; padding: 6px 0; color: inherit; text-decoration: none; min-height: 32px; }
.htl-articles .t { font-size: 14px; line-height: 20px; font-weight: 600; min-width: 0; word-break: keep-all; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.htl-articles a:hover .t { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
/* 그 후 이야기 — 테두리형 질문 말풍선 (Q + 궁금증 질문 + 화살표 버튼). 기사 제목·날짜는 숨김 */
.htl-fu {
  margin-top: 6px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 32px; gap: 10px; align-items: center;
  padding: 12px 12px 12px 14px; border: 1.5px solid var(--blue-700); border-radius: 12px 12px 12px 2px;
  background: var(--white); color: var(--text-1); text-decoration: none; transition: background 200ms ease;
}
.htl-fu .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; line-height: 1;
}
.htl-fu .hook { font-size: 15px; line-height: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-1); word-break: keep-all; }
.htl-fu .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;
}
.htl-fu .go svg { width: 16px; height: 16px; }
a.htl-fu:hover { background: var(--blue-50); }
a.htl-fu:hover .go { background: var(--blue-700); color: var(--white); }
a.htl-fu:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .htl-fu, .htl-fu .go { transition: none; } }

.htl-item.pending .dot { background: var(--white); box-shadow: inset 0 0 0 2px var(--n-300), 0 0 0 3px var(--white); }
.htl-item.pending .htl-date { color: var(--text-4); font-weight: 600; }
.htl-card--pending { display: flex; align-items: center; justify-content: center; padding: 24px; border-style: dashed; border-color: var(--border-strong); background: var(--bg-alt); }
.htl-card--pending p { margin: 0; font-size: 14px; color: var(--text-4); text-align: center; word-break: keep-all; }
.htl-item.is-focus .htl-card { animation: htl-flash 1.6s ease; }
@keyframes htl-flash { 0%, 40% { border-color: var(--teal-400); box-shadow: 0 0 0 2px var(--teal-400); } 100% { border-color: var(--border); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .htl-item.is-focus .htl-card { animation: none; } }

.card {
  display: grid; grid-template-rows: auto 1fr; background: var(--white);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden;
}
.card .thumb { border-radius: 0; }
.card-body { padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; }
.card-body h5 { margin: 0; font-size: 17px; line-height: 25px; font-weight: 700; letter-spacing: -0.01em; }
.card-body p { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-3); }
.card:hover h5 { color: var(--blue-700); }
.card:hover .thumb img { filter: brightness(.9); }

/* ─── 02. Together ──────────────────────────────────────── */

/* 카드 그리드: 숫자 하나 + 한 줄 + 시각 요소 하나 */
.story-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(2, 1fr); } .sc--wide { grid-column: span 2; } }
/* 카드 4개(넓은 카드 1 + 3)일 때 마지막 카드를 넓혀 빈칸 없이 채움 (2열·3열 모두) */
@media (min-width: 640px) { .story-grid > .sc:nth-child(4):last-child { grid-column: span 2; } }
@media (min-width: 900px) { .story-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.sc {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; container-type: inline-size;
  border-radius: var(--r-lg); background: rgba(255,255,255,0.06); border: 1px solid var(--on-dark-line);
}
.sc-verb { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--on-dark-2); }
.sc-verb .ico { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,217,215,0.14); color: var(--teal-400); display: inline-flex; align-items: center; justify-content: center; }
.sc-verb .ico svg { width: 15px; height: 15px; }
/* 숫자와 그림이 한 줄에 안 들어가면 그림이 아래 줄로 내려감 (겹치지 않게) */
.sc-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; min-width: 0; }
.sc-text { flex: 1 1 auto; display: grid; gap: 4px; min-width: 0; }
.sc-num { margin: 0; font-size: clamp(32px, 13cqi, 48px); line-height: 1.05; font-weight: 900; letter-spacing: -0.04em; color: var(--teal-400); white-space: nowrap; }
.sc-num .u { font-size: .5em; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.sc-num .txt { letter-spacing: -0.03em; }
.sc-num .big + .u { margin-left: 1px; }
.sc-cap { margin: 0; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--white); word-break: keep-all; }
.sc-facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--on-dark-2); }
.sc-facts b { color: var(--white); font-weight: 800; }
.sc-facts b .u { font-weight: 700; color: var(--on-dark-2); }
.sc-note { margin: auto 0 0; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--on-dark-line); font-size: 13px; line-height: 19px; color: var(--on-dark-2); word-break: keep-all; }
.sc-note .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); }
/* 카드 안 관련 기사 한 줄 */
.sc-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; margin-top: 4px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(255,255,255,0.06); color: var(--white); text-decoration: none; transition: background 200ms ease; }
.sc-link:hover { background: rgba(255,255,255,0.12); }
.sc-link:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 2px; }
.sc-link .lbl { flex: none; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--teal-400); }
.sc-link .t { flex: 1; min-width: 0; font-size: 13px; line-height: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-link svg { flex: none; width: 14px; height: 14px; color: var(--on-dark-2); }
@media (prefers-reduced-motion: reduce) { .sc-link { transition: none; } }
/* 섹션2 베리에이션 '문장 강조' — 문장(note)이 위 큰 자리, 기록 숫자+설명은 카드 아래로 (app.js renderStats 가 구조를 바꿈).
   index.html 의 #story-list 에서 story-grid--note 클래스를 빼면 기본안으로 돌아감 */
.story-grid--note .sc-lead { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; color: var(--white); word-break: keep-all; text-wrap: balance; }
.story-grid--note .sc-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--on-dark-line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
/* 아래 줄: 기록 숫자(단위 포함)와 설명을 같은 크기로 */
.story-grid--note .sc-foot .sc-num { font-size: 17px; line-height: 24px; letter-spacing: -0.02em; }
.story-grid--note .sc-foot .sc-num .u { font-size: 1em; }
/* 카드 폭과 상관없이 모든 카드 같은 크기 (화면 폭 기준으로만 한 단계) */
@media (min-width: 640px) { .story-grid--note .sc-lead { font-size: 22px; } }
.story-grid--note .sc-foot .sc-cap { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--on-dark-2); }
.story-grid--note .sc-foot .sc-link { flex: 1 0 100%; margin-top: 10px; }   /* 관련 기사: 아래 줄 맨 끝, 한 줄 전체 */
/* 작게: 넓은 카드 없이 같은 크기 카드 — PC 4열 한 줄, 태블릿 2×2, 모바일 1열. 그림은 문장 아래 카드 폭 그대로 */
#story-list.story-grid--note { gap: 12px; }
#story-list.story-grid--note > .sc { grid-column: auto; padding: 18px; gap: 10px; }
@media (min-width: 640px) { #story-list.story-grid--note { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 카드 3개(읽다 삭제, 2026-11-27): 640~899 는 2열 + 마지막 카드 두 칸, 900 이상 3열 한 줄 */
@media (min-width: 640px) and (max-width: 899px) { #story-list.story-grid--note > .sc:last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 900px) { #story-list.story-grid--note { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story-grid--note .sc-main { flex-direction: column; align-items: stretch; gap: 12px; }
.story-grid--note .sv-day, .story-grid--note .sv-moment { flex: none; max-width: none; width: 100%; }
.story-grid--note .sv-topics, .story-grid--note .sv-cal { flex: none; justify-items: start; }
.story-grid--note .sc-foot { padding-top: 12px; }
.story-grid--note .sc-foot .sc-num, .story-grid--note .sc-foot .sc-cap { font-size: 15px; line-height: 22px; }
.story-grid--note .sc-foot .sc-link { margin-top: 8px; }
@media (min-width: 640px) { .story-grid--note .sc-lead { font-size: 19px; } }
/* 카드 아래 줄(구분선) 높이를 같은 줄의 카드끼리 맞춤: 카드를 부모 격자의 3줄(라벨/본문/아래 줄)에 붙임 */
@supports (grid-template-rows: subgrid) {
  /* container-type 이 있으면 subgrid 가 꺼지므로 이 안에서는 끔 (이 안의 글자 크기는 고정값이라 영향 없음) */
  #story-list.story-grid--note > .sc { container-type: normal; display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 10px; align-content: start; }
}
.story-grid--note .sc-foot { margin-top: 18px; }   /* 아래 줄 위 여백 */

/* 시각 요소 */
.sv { flex: none; display: grid; justify-items: center; gap: 6px; }
.sv .lbl { font-size: 11px; line-height: 15px; color: var(--on-dark-2); text-align: center; }
/* 맥박: 1초마다 퍼지는 원 */
.sv-pulse { width: 72px; height: 72px; position: relative; place-items: center; }
.sv-pulse .beat { width: 18px; height: 18px; border-radius: 50%; background: var(--teal-400); position: relative; }
.sv-pulse .beat::before, .sv-pulse .beat::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal-400);
  animation: sc-beat 1s ease-out infinite;
}
.sv-pulse .beat::after { animation-delay: .5s; }
@keyframes sc-beat { from { transform: scale(1); opacity: .9; } to { transform: scale(3.6); opacity: 0; } }
/* 원형 게이지 */
.sv-ring { position: relative; }
.sv-ring svg { width: 76px; height: 76px; display: block; }
.sv-ring circle { fill: none; stroke-width: 8; }
.sv-ring .trk { stroke: rgba(255,255,255,0.14); }
.sv-ring .val { stroke: var(--teal-400); stroke-linecap: round; }
.sv-ring .pct { position: absolute; top: 0; left: 0; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: var(--white); }
.sv-ring .pct small { font-size: 11px; font-weight: 700; margin-left: 1px; }
/* 점 그림: 사람 수 */
/* 하루 24시간 줄: 많이 본 시간대만 청록 (높낮이·수치 없음) */
.sv-day { flex: 1 1 240px; max-width: 340px; justify-items: stretch; gap: 0; padding-bottom: 2px; }
.sv-day .track { position: relative; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.12); }
.sv-day .track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--teal-400); box-shadow: 0 0 0 3px rgba(0,217,215,0.18); }
.sv-day .ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; line-height: 14px; color: var(--on-dark-3, rgba(255,255,255,0.5)); }
.sv-day .slots { position: relative; height: 34px; margin-top: 4px; }
.sv-day .sl { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; font-size: 11px; line-height: 15px; color: var(--on-dark-2); white-space: nowrap; }
.sv-day .sl b { font-size: 12px; font-weight: 800; color: var(--teal-400); }
/* 시간 흐름 선 + 정점 (세로축 숫자 없음) */
.sv-moment { flex: 1 1 200px; max-width: 280px; justify-items: stretch; gap: 6px; }
.sv-moment svg { display: block; width: 100%; height: auto; overflow: visible; }
.sv-moment .area { fill: rgba(0,217,215,0.14); }
.sv-moment .line { fill: none; stroke: var(--teal-400); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sv-moment .pk-line { stroke: rgba(255,255,255,0.35); stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.sv-moment .pk { fill: var(--white); stroke: var(--teal-400); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sv-moment .axis { position: relative; display: flex; justify-content: space-between; font-size: 11px; line-height: 15px; color: var(--on-dark-2); }
.sv-moment .axis .on { position: absolute; top: 0; transform: translateX(-50%); color: var(--teal-400); font-weight: 700; }
/* 달력: 그날 하루만 청록 */
.sv-cal .cal { display: grid; gap: 4px; padding: 8px 10px 10px; border-radius: var(--r-md); background: rgba(255,255,255,0.06); border: 1px solid var(--on-dark-line); }
.sv-cal .m { font-size: 11px; line-height: 14px; font-weight: 800; color: var(--white); }
.sv-cal .wk, .sv-cal .days { display: grid; grid-template-columns: repeat(7, 10px); gap: 3px; }
.sv-cal .wk span { font-size: 8px; line-height: 10px; text-align: center; color: var(--on-dark-2); }
.sv-cal .days b, .sv-cal .days i { width: 10px; height: 10px; border-radius: 2px; }
.sv-cal .days b { background: rgba(255,255,255,0.16); }
.sv-cal .days b.on { background: var(--teal-400); box-shadow: 0 0 0 2px rgba(0,217,215,0.35); }
/* 분야 칩: 하나만 청록 */
.sv-topics { flex: 0 1 220px; justify-items: start; }
.sv-topics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sv-topics li { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--on-dark-line); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--on-dark-2); }
.sv-topics li.on { border-color: var(--teal-400); background: var(--teal-400); color: var(--blue-900); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .sv-pulse .beat::before, .sv-pulse .beat::after { animation: none; opacity: 0; } }
@media (min-width: 900px) { .sc { padding: 24px; } .sv-pulse { width: 96px; height: 96px; } }

/* ─── 03. Popular ───────────────────────────────────────── */


/* 공용 칩 (04 보도 유형 필터 · 01 관심 분야) */
.chip {
  height: 34px; padding: 0 14px; border-radius: var(--r-full);
  border: 1px solid var(--border-strong); background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.chip:hover { border-color: var(--blue-700); color: var(--blue-700); }
.chip[aria-selected="true"] { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }

/* 반응으로 본 올해의 뉴스 — 반응별 상위 3개 패널 캐러셀
   SBS NEWS 디자인 시스템: Card(흰 배경·radius md 8px·shadow-sm·색 테두리 없음)
   + Image list_horizontal(제목 600 / 카테고리 brand 700 / 오른쪽 썸네일 / 1px #EDEDED 구분선)
   + Hover는 색 변화만(행 배경 #F4F4F4, 링크 #284ACD, 200ms) */
.rxb-row {
  list-style: none; margin: 0; padding: 4px 4px 20px; display: grid; grid-auto-flow: column;
  grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: -4px;
}
.rxb-row::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .rxb-row { grid-auto-columns: calc((100% - 16px) / 2.2); } }
@media (min-width: 900px) { .rxb-row { grid-auto-columns: calc((100% - 48px) / 3.2); gap: 24px; } }
.rxb {
  scroll-snap-align: start; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  gap: 16px; padding: 24px; border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-sm);
}
.rxb-head { display: grid; gap: 4px; justify-items: start; text-align: left; }
.rxb-art { width: 96px; height: 96px; margin-bottom: 12px; }
.rxb-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rxb-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;
}
.rxb-art .ph svg { width: 40px; height: 40px; }
.rxb-head .ttl { margin: 0; font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.2px; color: var(--text-1); word-break: keep-all; }
.rxb-head .why { margin: 4px 0 0; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text-3); word-break: keep-all; }
.rxb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--border-strong); }
.rxb-list li { min-width: 0; border-bottom: 1px solid var(--border); }
.rxb-list li:last-child { border-bottom: 0; }
.rxb-item {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) 80px; gap: 12px; align-items: center;
  min-width: 0; padding: 12px 8px; margin: 0 -8px; color: var(--text-1); text-decoration: none;
  transition: background 200ms ease;
}
.rxb-item:hover { background: var(--bg-alt); }
.rxb-item:focus-visible { outline: 2px solid var(--blue-700); outline-offset: -2px; }
.rxb-item .rk { align-self: start; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--blue-700); }
.rxb-item .tx { display: grid; gap: 4px; min-width: 0; }
.rxb-item .t { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-1); word-break: keep-all; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 200ms ease; }
.rxb-item:hover .t { color: var(--blue-500); }
.rxb-item .cat { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--blue-700); }
.rxb-item .thumb { width: 80px; border-radius: var(--r-sm); }
.rxb-item .thumb .ph { padding: 0; }
.rxb-item .thumb .ph-mark { display: none; }
/* 이전/다음: 01 이슈 타임라인과 같은 .scroll-nav (제목 줄 오른쪽, 모바일은 스와이프) */
@media (max-width: 639px) { .rxb { padding: 20px; } .rxb-head .ttl { font-size: 22px; line-height: 28px; } .rxb-art { width: 72px; height: 72px; } .rxb-art .ph svg { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .rxb-item, .rxb-item .t { transition: none; } }

/* ─── 04. Editor picks ──────────────────────────────────── */
/* SBS뉴스가 던진 질문들 — 큰 질문 + 매칭된 기사 (카드 전체 링크) */
.qa-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .qa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qa-item { min-width: 0; }
/* 사진 카드 (비주얼형 .v-pick 과 같은 구성): 사진 + 아래쪽 어둡게 + Q·질문·매칭 기사 */
.qa-card {
  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) { .qa-card { aspect-ratio: 4 / 3; } }
.qa-media, .qa-media .thumb { position: absolute; inset: 0; width: 100%; height: 100%; }
.qa-media .thumb { aspect-ratio: auto; border-radius: 0; transition: filter 200ms ease; }
.qa-media .thumb .ph-mark { display: none; }
.qa-card:hover .qa-media .thumb { filter: brightness(.88); }
.qa-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.7)); pointer-events: none; }
.qa-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 12px; justify-items: start; padding: 22px; }
.qa-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;
}
.qa-cap strong { font-size: clamp(21px, 5.4vw, 24px); line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; word-break: keep-all; }
.qa-art { display: grid; gap: 2px; width: 100%; min-width: 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.28); }
.qa-art .lbl { font-size: 11px; line-height: 15px; font-weight: 700; color: var(--teal-400); }
.qa-art .t { font-size: 13px; line-height: 18px; color: rgba(255,255,255,0.85); word-break: keep-all; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qa-card:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .qa-media .thumb { transition: none; } }
.pick-cta { margin-top: 28px; display: flex; justify-content: center; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 15px; font-weight: 700; transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--blue-700); color: var(--white); }
.btn--primary:hover { background: var(--blue-800); }
.btn--primary:active { background: var(--blue-900); }
.btn--secondary { background: var(--n-100); color: var(--text-1); }
.btn--secondary:hover { background: var(--n-150); }
.btn--outline { background: transparent; border-color: var(--border-strong); color: var(--text-2); }
.btn--outline:hover { border-color: var(--blue-700); color: var(--blue-700); }
.btn--on-dark { background: var(--white); color: var(--blue-700); }
.btn--on-dark:hover { background: var(--blue-50); }
.btn--ghost-dark { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn--ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ─── 05. Shorts (세로 9:16) ───────────────────────────── */
.shorts-row {
  list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 42%); gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: thin;
}
.short { scroll-snap-align: start; min-width: 0; }
.short a { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.short-thumb { aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center; }
.short-thumb img { position: absolute; inset: 0; }
.short-thumb .ph-mark { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; color: var(--white); opacity: .85; }
.short-thumb .play {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.16); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.short-thumb .play svg { width: 22px; height: 22px; margin-left: 2px; }
.short-thumb .dur {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: var(--r-sm);
  background: rgba(7,18,81,0.82); color: var(--white); font-size: 12px; font-weight: 700; line-height: 16px;
}
.short a:hover .short-thumb img { filter: brightness(.9); }
.short a:hover .short-thumb .play { background: var(--teal-400); color: var(--blue-900); }
.short-body { display: grid; gap: 4px; min-width: 0; }
.short-tag { justify-self: start; font-size: 11px; line-height: 16px; font-weight: 700; color: var(--red-500); }
.short-body strong {
  font-size: 15px; line-height: 21px; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.short a:hover strong { color: var(--blue-700); }
.short-body .meta { display: flex; gap: 8px; font-size: 12px; color: var(--text-4); }
@media (min-width: 640px) { .shorts-row { grid-auto-columns: calc((100% - 36px) / 3.4); } }
@media (min-width: 900px) { .shorts-row { grid-auto-columns: calc((100% - 64px) / 5.4); gap: 16px; } }
.scroll-nav { display: none; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
@media (min-width: 640px) { .scroll-nav { display: flex; } }
.scroll-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--white);
  color: var(--text-1); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.scroll-nav button:hover:not(:disabled) { border-color: var(--blue-700); color: var(--blue-700); }
.scroll-nav button:disabled { opacity: .35; cursor: default; }
.scroll-nav svg { width: 18px; height: 18px; }

/* ─── 06. Ending ────────────────────────────────────────── */
.ending { background: var(--blue-700); color: var(--white); text-align: left; }
.ending .wrap { padding-block: 64px 56px; display: grid; gap: 28px; }
.ending-year { font-size: clamp(64px, 18vw, 140px); line-height: .9; font-weight: 900; letter-spacing: -0.04em; color: var(--teal-400); margin: 0; }
.ending-msg { margin: 0; font-size: clamp(20px, 4.6vw, 28px); line-height: 1.5; font-weight: 700; letter-spacing: -0.01em; white-space: pre-line; max-width: 26em; }
/* 공유: 페이지 버튼 스타일 그대로 (링크 복사 = 흰 버튼, 나머지 = 테두리 버튼). 모바일 2열, PC 한 줄 */
.share { display: grid; gap: 14px; }
.share-head { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: rgba(255,255,255,0.72); }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.share-list .share-btn { width: 100%; }
@media (min-width: 640px) { .share-list { display: flex; flex-wrap: wrap; } .share-list .share-btn { width: auto; } }
.share-status { min-height: 20px; font-size: 13px; color: var(--teal-400); }
.copy-fallback { display: flex; gap: 8px; }
.copy-fallback input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: var(--white); font: inherit; font-size: 13px; }

.site-footer { background: var(--n-900); color: var(--n-400); font-size: 12px; line-height: 18px; }
.site-footer .wrap { padding-block: 28px; display: grid; gap: 10px; }
.site-footer img { height: 14px; width: auto; opacity: .7; }

/* ─── Reveal (visible at rest; only enhanced when JS opts in) ── */
.js-motion .reveal { transition: opacity 500ms ease, transform 500ms ease; }
.js-motion .reveal.pre { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal.pre { opacity: 1; transform: none; }
}

/* Back to top */
.to-top {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%; border: 0; z-index: 40;
  background: var(--blue-700); color: var(--white); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--blue-800); }

/* ============================================================
   기사형 디자인 수정 (2026.11.26) — index.html 에만 있는 클래스로 묶음
   (비주얼형은 같은 style.css 를 쓰므로 기존 규칙은 그대로 둠)
   ============================================================ */
:root:has(.section-nav--light) { --sticky-h: 57px; scroll-padding-top: calc(var(--sticky-h) + 8px); }
body:has(.site-header--light)::before { background: var(--white); }

/* ─── 헤더: 흰색 두 줄. 1줄 로고·제목(56) / 2줄 앵커 메뉴(56)만 고정 ─── */
.site-header--light { position: relative; top: auto; background: var(--white); color: var(--n-900); border-bottom: 1px solid var(--n-100); }
.site-header--light .wrap { position: relative; height: 56px; }
.site-header--light .logo img { height: 18px; }
.site-header--light .header-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 14px; font-weight: 700; color: var(--n-900); white-space: nowrap; }
@media (max-width: 479px) { .site-header--light .logo img { height: 16px; } }
.section-nav--light { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 49; background: var(--white); border-bottom: 1px solid var(--n-100); }
.section-nav--light ol { height: 56px; width: max-content; max-width: 100%; margin: 0 auto; gap: 4px; }   /* 가운데 정렬, 넘치면 좌우 스크롤 */
.section-nav--light a { padding: 0 14px; font-size: 17px; font-weight: 700; color: var(--n-900); border-bottom: 0; transition: color 200ms ease; }
.section-nav--light a:hover { color: var(--teal-600); }
.section-nav--light a[aria-current="true"] { color: var(--teal-400); font-weight: 700; }
@media (max-width: 639px) { .section-nav--light a { padding: 0 10px; } }

/* ─── 히어로: 가운데 정렬, Barlow 2026 ─── */
.hero--center .wrap { padding-block: 0 56px; justify-items: center; text-align: center; }
/* 헤더 아래 ~ 숫자 윗끝 76px(모바일 64px): 줄 상자 위 여백(약 0.19em)을 빼서 맞춤 */
.hero--center .hero-year { margin-top: calc(76px - 0.19em); }
.hero--center .hero-year {
  font-family: "Barlow", var(--font); font-weight: 700; letter-spacing: -0.01em; line-height: 1;
  font-size: clamp(60px, 14vw, 120px); gap: 0; align-items: stretch;
}
.hero--center .hero-year .d { position: relative; display: inline-block; }
.hero--center .hero-text { margin-top: 24px; padding-top: 0; border-top: 0; gap: 26px; justify-items: center; grid-template-columns: minmax(0, 1fr); }
.hero--center .hero-sub { font-size: clamp(13px, 1.6vw, 15px); line-height: 1.65; }
.hero--center .hero-meta { justify-content: center; font-size: 13px; }
@media (max-width: 767px) { .hero--center .wrap { padding-bottom: 44px; } .hero--center .hero-year { margin-top: calc(64px - 0.19em); } }

/* ─── 01. 흐르는 이슈 섬네일: 히어로와 이어지는 블루, 화면 전체 폭 ─── */
.sec--issues { padding: 0 !important; }
.sec--issues .ix { margin: 0; padding: 0 0 14px; background: var(--blue-700); }
.sec--issues .mq { margin-inline: 0; padding: 0; }
.sec--issues .ix-chip { width: clamp(240px, 20vw, 320px); container-type: inline-size; }
.sec--issues .mq-media img, .sec--issues .mq-ph { filter: grayscale(1); transition: filter 250ms ease; }
.sec--issues .mq-media::after { background: rgba(18,40,125,0.10); transition: opacity 250ms ease; }   /* 딤드: 블루 10% */
.sec--issues .ix-chip:hover .mq-media img, .sec--issues .ix-chip:hover .mq-ph,
.sec--issues .ix-chip:focus-visible .mq-media img, .sec--issues .ix-chip:focus-visible .mq-ph,
.sec--issues .ix-item.is-on .mq-media img, .sec--issues .ix-item.is-on .mq-ph { filter: none; }
.sec--issues .ix-chip:hover .mq-media::after, .sec--issues .ix-chip:focus-visible .mq-media::after,
.sec--issues .ix-item.is-on .mq-media::after { opacity: 0; }
/* 이슈명: 섬네일 정중앙, 크기는 섬네일 폭에 비례 */
.sec--issues .mq-name { align-items: center; justify-content: center; text-align: center; gap: .3em; padding: 8%; background: rgba(7,18,81,0.45); }
.sec--issues .mq-name .d { font-size: max(11px, 4.4cqi); line-height: 1.3; }
.sec--issues .mq-name .k { font-size: max(15px, 7.6cqi); line-height: 1.25; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.sec--issues .ix-chip:focus-visible { outline-color: var(--teal-400); }
@media (hover: none) {
  /* 터치: 이슈명은 섬네일 아래쪽에 늘 보임 */
  .sec--issues .mq-name { justify-content: flex-end; padding: 8px 10px; background: none; }
}
@media (max-width: 639px) { .sec--issues .ix { padding-bottom: 8px; } .sec--issues .ix-chip { width: 176px; } }

/* ─── 01. 타임라인: 화면 전체 폭, 첫 카드는 화면 왼쪽에서 50px. 이전/다음은 아래 가운데 ─── */
.sec--issues .htl { --pad: 50px; padding-block: 50px; scroll-margin-top: calc(var(--sticky-h, 57px) + 16px); }
.sec--issues .htl-row {
  padding: 0 var(--pad) 4px; scroll-padding-inline: var(--pad); scrollbar-width: none;
  grid-auto-columns: min(82vw, 340px);
}
.sec--issues .htl-row::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .sec--issues .htl-row { grid-auto-columns: clamp(280px, 42vw, 400px); } }
@media (min-width: 900px) { .sec--issues .htl-row { grid-auto-columns: clamp(300px, 28vw, 460px); } }   /* 넓은 화면에서 비례 확대, 최대 460 */
.sec--issues .htl-nav { justify-content: center; margin: 24px 0 0; }

/* ─── 2027: 모두 가운데, Barlow, 원형 아이콘 공유 버튼 ─── */
.ending--center { position: relative; overflow: hidden; text-align: center; }
.ending--center .wrap { position: relative; z-index: 1; justify-items: center; gap: 0; padding-block: 96px 56px; }
.ending--center .ending-year { font-family: "Barlow", var(--font); font-weight: 700; letter-spacing: -0.01em; line-height: 1; font-size: clamp(56px, 13vw, 110px); }
.ending--center .ending-msg { margin-top: 28px; margin-inline: auto; }
.ending--center .share { margin-top: 40px; justify-items: center; }
.ending--center .copy-fallback { margin-top: 14px; width: min(100%, 420px); }
.ending--center .share-status { margin: 8px 0 0; min-height: 20px; }
.ending--center .ending-go { margin-top: 28px; }   /* 공유 버튼 아래 ~ 바로가기 = 8 + 20 + 28 = 56, 바로가기 아래 56 */
.share-list--icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.share-list--icons .share-btn { width: 48px; }
.share-ico {
  position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.4); background: transparent; color: var(--white);
  transition: border-color 200ms ease, background 200ms ease;
}
.share-ico svg { width: 22px; height: 22px; }
.share-ico:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.share-ico:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; border-radius: 50%; }
/* 이름은 툴팁으로 (화면 읽기 프로그램은 aria-label) */
.share-ico::after {
  content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  padding: 4px 8px; border-radius: var(--r-sm); background: var(--white); color: var(--blue-900);
  font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 150ms ease, transform 150ms ease;
}
.share-ico:hover::after, .share-ico:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .share-ico, .share-ico::after, .sec--issues .mq-media img, .sec--issues .mq-ph, .sec--issues .mq-media::after { transition: none; } }
