/* WDSLab 공통 스타일. 색은 아래 7개만 쓴다. 페이지 전용은 members · research · publications · gallery .css */

:root {
  --navy: #09223D;      /* 주색: 머리띠, 제목, 버튼 */
  --accent: #2F6FB5;    /* 강조 하나: 링크, 호버 */
  --bg: #FFFFFF;
  --bg2: #F4F6F9;       /* 번갈아 쓰는 연회색 구간 */
  --ink: #1F2933;       /* 본문 글자 */
  --muted: #6B7280;     /* 날짜·부제 */
  --line: #E2E6EB;      /* 테두리·구분선 */
  --shell: 1120px;
  --radius: 14px;       /* 카드·사진·버튼 모서리 */
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }   /* 부드러운 스크롤은 CSS 로 걸지 않음 — 걸면 새로 고침 때 이전 위치로 돌아가는 것까지 미끄러지듯 움직임 (같은 페이지 안 링크는 site.js 가 부드럽게). 스크롤바 자리를 늘 비워 둬서, 창이 열려 스크롤을 막아도 화면이 옆으로 밀리지 않음 */
html:has(dialog[open]) { overflow: hidden; }           /* 창(실적 보기·사진 크게 보기)이 열린 동안 뒤 페이지는 스크롤 안 됨 */
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;   /* 내용이 짧은 페이지(Contact·404)도 푸터가 화면 맨 아래에 붙게 */
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; min-width: 0; }
.page-contact main { display: flex; flex-direction: column; }
.page-contact main > .section { flex: 1; }   /* 늘어난 자리도 회색 구간으로 채움 (제목 띠만 흰색) */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--navy); letter-spacing: -0.02em; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
html { overflow-anchor: none; }   /* 브라우저 스크롤 앵커링 끔: 쪽을 바꿔 목록 내용이 바뀌면 보이던 요소를 붙잡느라 스크롤이 수백 px 튀고(News 3→2 쪽에서 +791px), 그 뒤 제목까지 반대로 굴러가 보였음. 자리는 전부 미리 잡아 두므로 앵커링이 필요 없다 */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* 머리글 */
/* 머리글: 기본은 흰 바탕 + 남색 글자. 홈 첫 화면 위에서만 남색 바탕 + 흰 글자였다가, 첫 화면이 지나가면(site.js 가 hero-passed) 흰 바탕으로 바뀜 */
.header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; transition: background .3s ease, border-color .3s ease; }
.header .top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand img { width: auto; height: 40px; }   /* 연구실 공식 로고 (48px 그림을 40px 로 — 사용자 요청) */
.brand .logo-light { display: none; }      /* 흰 로고는 홈 첫 화면 위에서만 */
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink); font-size: 15px; padding: 20px 0; border-bottom: 2px solid transparent; transition: color .3s ease, border-color .3s ease; }
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav a.active { color: var(--navy); font-weight: 700; border-bottom-color: var(--navy); }
.hamburger { display: none; font: inherit; font-size: 22px; background: none; border: 0; color: var(--navy); cursor: pointer; transition: color .3s ease; }
/* 홈: 머리글이 첫 화면 위에 떠 있어(자리를 차지하지 않음) 배경 사진이 바 뒤까지 찬다. 첫 화면 위에서는 투명, 지나가면 흰 바 */
.home .header { position: fixed; left: 0; right: 0; }
.home .hero { top: 0; height: 100vh; }
.home:not(.hero-passed) .header { background: transparent; border-bottom-color: transparent; }
.home:not(.hero-passed) .brand .logo-dark { display: none; }
.home:not(.hero-passed) .brand .logo-light { display: block; }
.home:not(.hero-passed) .nav a { color: rgba(255,255,255,.82); }
.home:not(.hero-passed) .nav a:hover { color: #fff; }
.home:not(.hero-passed) .nav a.active { color: #fff; border-bottom-color: transparent; }   /* 투명 바에서는 밑줄 없음 (사용자 요청) — 흰 바로 바뀌면 다시 보임 */
.home:not(.hero-passed) .hamburger { color: #fff; }
.menu-open .home:not(.hero-passed) .hamburger { background: rgba(255,255,255,.15); }   /* ☰ 눌린 느낌 (menu-open 은 html 에 붙음) */

/* 버튼 */
.btn { display: inline-block; padding: 11px 22px; border-radius: var(--radius); font-size: 15px; font-weight: 500; border: 1px solid var(--navy); background: var(--navy); color: #fff; }
.btn:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--bg2); color: var(--navy); border-color: var(--navy); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* 구간 공통 */
.section { padding: 72px 0; }
/* 창(모달) 공통 열림 효과: 0.3초 동안 살짝 아래(12px)에서 떠오르며 나타나고 바탕도 같이 어두워짐 (People 실적 창 · 사진 창). 움직임 줄이기 설정이면 없음 */
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
dialog[open] { animation: dialog-in .3s ease-out; }
dialog[open]::backdrop { animation: backdrop-in .3s ease-out; }
@media (prefers-reduced-motion: reduce) { dialog[open], dialog[open]::backdrop { animation: none; } }

/* 스크롤 떠오름: 구간 내용(.section > .shell)이 화면에 들어올 때 살짝 아래(22px)에서 0.7초 동안 천천히 나타난다 — 처음 한 번만, 한 구간씩 (site.js).
   투명도·위치 이동만 쓰므로 자리(배치)는 그대로 → 화면 밀림 0. 스크립트가 켜진 브라우저(html.js)에서만, 움직임 줄이기 설정이면 없음. 열 때 이미 보이는 구간은 바로 보임(html.reveal-init) */
html.js main .section { overflow: clip; }   /* 아래로 22px 밀어 둔 내용이 페이지 길이를 늘리지 않게. hidden 이 아니라 clip — hidden 은 안의 sticky(Services 고정 칸)를 깨뜨림 */
html.js main .section > .shell { opacity: 0; transform: translateY(22px); transition: opacity .7s ease-out, transform .7s ease-out; }
html.js main .section > .shell.is-in { opacity: 1; transform: none; }
html.js.reveal-init main .section > .shell { transition: none; }
@media (prefers-reduced-motion: reduce) { html.js main .section > .shell { opacity: 1; transform: none; transition: none; } }
.section.alt { background: var(--bg2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* 하위 페이지 머리 (People · Research · Publications · News · Join) */
.pagehero { padding: 32px 0; border-bottom: 1px solid var(--line); }   /* 글자 위·아래 눈에 보이는 여백이 같게(45px). 띠 높이 125px 는 Services --svc-top 과 맞물림 */
.pagehero h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.035em; }
.pagehero p { margin-top: 10px; font-size: 16px; color: var(--muted); }
.more { font-size: 15px; white-space: nowrap; }

/* 첫 화면: 화면에 잠시 고정되고, 스크롤에 맞춰 점 ? 가 커지며 터졌다가 ! 로 모인다 (home.js) */
.hero-pin { height: 300vh; }
.hero { position: sticky; top: 64px; -webkit-user-select: none; user-select: none; height: calc(100vh - 64px); display: flex; align-items: center; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, #071A30 100%); }
.hero-bg, .hero-dots, .hero-photo, .hero-campus { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-photo { object-fit: cover; object-position: center 60%; }   /* 지구 사진(세로 그림): 지평선(그림의 67% 지점, data-horizon)이 화면 아래쪽에 오게 60% 위치. 숫자를 바꾸면 home.js 의 0.60 도 같이 */
.hero-campus { object-fit: cover; object-position: center; opacity: 0; filter: brightness(.5); transform-origin: 50% 55%; will-change: transform, opacity; }   /* 학교 사진: 장면 끝에 home.js 가 화면을 채운 채 1.0→1.08 로 키우며 보이게 함(테두리 안 보임). 흰 글이 읽히게 어둡게 */   /* 지구 사진(세로 그림): 지평선(그림의 68% 지점, data-horizon)이 화면 아래쪽에 오게. 스크롤하면 home.js 가 투명도를 내린다 */
.hero .shell { position: relative; z-index: 1; width: 100%; text-align: center; pointer-events: none; }
.hero-copy { transform-origin: 50% 50%; pointer-events: auto; } /* will-change 를 두면 확대한 글자가 흐릿하게 남는다 */
.hero-kicker { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: 80px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; }
.hero .subtitle { margin-top: 18px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.hero .actions { justify-content: center; }
.hero-final { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; color: #fff; opacity: 0; pointer-events: none; padding: 0 24px; } /* 좌우 여백은 .shell 과 같게 — 처음 제목(?)과 끝 문장(!)이 휴대폰에서 같은 자리에서 줄이 바뀌도록 */
.final-title { font-size: 80px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; } /* 처음 제목과 같은 크기·자리 */
.final-mark { display: inline-block; margin-left: .06em; font-weight: 800; opacity: 0; } /* 큰 ! 가 날아와 이 자리에 앉는다 */
.final-sub { margin-top: 18px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; } /* 처음 부제와 같은 모양 */
/* 질문(?) · 답(!) 구간 */
.qa-row { display: block; }
.qa { scroll-margin-top: 64px; } /* 머리글 높이만큼 띄워서 멈춤 */

.qa h2, .home-head h2 { font-size: 32px; } /* 홈 구간 제목은 전부 32px */
.qa h2 + .qa-list { margin-top: 28px; } /* 설명 줄 없이 제목 바로 아래 목록 */
.qa-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.qa-list > li { border-bottom: 1px solid var(--line); }
.qa-item { display: grid; grid-template-columns: 340px 1fr; gap: 24px; padding: 16px 0; color: inherit; transition: padding-left .2s ease; }
.qa-item:hover { padding-left: 8px; }   /* 마우스를 올리면 줄이 살짝 밀림 */
.qa-item > b { font-weight: 600; color: var(--navy); }
.qa-item:hover > b { color: var(--accent); }
.qa-item > span { color: var(--muted); font-size: 15px; }
.qa-list.papers .qa-item { grid-template-columns: 1fr; gap: 4px; }
.qa-list.papers .paper-links { margin-top: 2px; font-size: 13.5px; }
@media (max-width: 860px) {
  .qa-item { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav.open, .nav-backdrop, .menu-open .nav-backdrop { transition: none; } .hero-pin { height: auto; } .hero { position: relative; top: 0; height: auto; padding: 80px 0 72px; } .hero-final, .hero-campus { display: none; } }

/* 제목의 물음표: home.js 가 스크롤에 맞춰 별로 바꿔 그린다 */
.mark { display: inline-block; margin-left: .04em; transition: opacity .2s linear; }
/* 끝 장면의 글자 느낌표: 별이 다 모이면 이 글자로 바뀐다 (자리·크기는 home.js) */
.hero-bang { position: absolute; z-index: 1; font-weight: 800; line-height: 1; color: #fff; opacity: 0; pointer-events: none; transform-origin: 0 0; }
/* 첫 화면 맨 아래 신호: 글자 없이 반투명 동그라미(화면 폭에 맞춰 34~46px) 안의 꺾쇠 하나가 아래로 통통 튀듯 오르내림. 처음엔 장면 끝까지, 장면 끝에선 연구 분야로 (home.js) */
.scroll-cue { --cue: clamp(34px, 3.1vw, 46px); position: absolute; left: 50%; bottom: calc(var(--cue) * .45); z-index: 1; display: flex; align-items: center; justify-content: center; width: var(--cue); height: var(--cue); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transform: translateX(-50%); color: #fff; cursor: pointer; transition: opacity .4s ease, background .2s ease; animation: cue-bounce 1.8s ease-in-out infinite; }
.scroll-cue:hover { background: rgba(255,255,255,.26); text-decoration: none; }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
.scroll-cue.cue-end { transition-duration: .8s, .2s; }   /* 사라질 땐 스르륵 */
.scroll-cue i { width: calc(var(--cue) * .27); height: calc(var(--cue) * .27); margin-top: calc(var(--cue) * -.12); border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
@keyframes cue-bounce { 0%, 100% { transform: translate(-50%, 0); } 45% { transform: translate(-50%, 8px); } 60% { transform: translate(-50%, 3px); } 75% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }   /* 버튼 4개: 좁은 화면에선 두 줄 */
.hero .btn { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn:hover { background: var(--bg2); }
.hero.is-play { cursor: none; }

/* 연구 분야 */
/* 홈 Research Areas: 카드 넘겨 보기 (.rail 재사용). 한 번에 3장, 가운데 장만 선명(.is-center, site.js) 양옆은 연하게. 카드 배경 그림 + 검은색 반투명 한 겹 + 흰 글자 */
.areas-wrap { margin-top: 28px; }
.rail.areas-rail { padding: 24px 4px; margin: -24px -4px; gap: 8px; }   /* 가운데 카드가 커져도 잘리지 않게 위아래 여유. .rail 이 뒤에 있어 덮어쓰지 못하게 .rail 을 붙임 (덮이면 간격 24px → 오른쪽 카드 잘림) */
/* 카드 자체(.area-card)는 칸 맞춤 기준 상자라 크기를 바꾸지 않고, 안쪽 상자(.area-inner)만 키우고 줄인다 — 카드를 직접 줄이면 넘김이 멈춘 뒤 브라우저가 줄어든 상자 기준으로 칸을 다시 맞춰 "뚝" 더 끌려감 */
.area-card { flex: none; width: calc((100% - 16px) / 3); scroll-snap-align: start; position: relative; }
.area-card.is-center { z-index: 1; }
.areas-rail .area-card:not(.is-center), .services-rail .system:not(.is-center) { cursor: pointer; }   /* 양옆 카드는 누르면 넘어감 */
.area-inner { border-radius: var(--radius); overflow: hidden; background: var(--navy) center / cover no-repeat; opacity: .45; transform: scale(.88); transition: opacity 1s cubic-bezier(.65,0,.35,1), transform 1s cubic-bezier(.65,0,.35,1); will-change: transform, opacity; backface-visibility: hidden; }   /* 그래픽 층으로 올려 넘길 때 다시 그리지 않게. 전환은 site.js 넘김(1초, 같은 곡선)과 맞춤 — 다르면 카드가 움직이기 전에 밝기부터 바뀜 */
.area-card.is-center .area-inner { opacity: 1; transform: scale(1.04); }   /* 가운데는 크게, 양옆은 작고 연하게 — 살짝 겹쳐 보임 */
.rail.no-transition .area-inner { transition: none; }   /* 복사본 구간 → 진짜 구간 순간 이동 때 (site.js wrapAround) */
.area-card .qa-item { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; height: 300px; padding: 20px 22px 22px; color: #fff; background: rgba(0,0,0,.52); transition: background .4s ease; }
.area-card .qa-item:hover { padding-left: 22px; background: rgba(0,0,0,.4); }
.area-card .qa-item > b { font-size: 18px; line-height: 1.3; color: #fff; }
.area-card .qa-item:hover > b { color: #fff; }
.area-card .qa-item > span { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.84); }
@media (max-width: 860px) { .area-card { width: 100%; } .area-inner, .area-card.is-center .area-inner { transform: none; will-change: auto; } .area-card .qa-item { height: 240px; padding: 18px 18px 18px; } .area-card .qa-item > b { font-size: 17px; } }

/* 주요 논문 창: People 실적 창과 같은 모양 */


.area { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); color: inherit; display: block; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.area:hover { border-color: var(--navy); text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(9,34,61,.08); }
.area .num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .2s ease; }
.area:hover .num { color: var(--accent); font-weight: 700; }
.area h3 { margin-top: 10px; }
.area p { margin-top: 10px; font-size: 14.5px; color: var(--ink); }

/* 시스템: 멈춘 줄, 좌우 화살표로 넘김 (손가락으로 밀어도 됨) */
/* 화살표: 줄 양옆 바깥 여백에 꺾쇠만 (동그라미 바탕 없음). 높이는 카드 가운데(--arrow-top). 여백이 없는 좁은 화면에선 줄 좌우를 띄워 그 자리에 둠 */
.rail-wrap { position: relative; --arrow-top: calc(50% - 20px); }
.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; scrollbar-width: none; padding: 4px; margin: -4px; }   /* scroll-padding = 안쪽 여백: 칸 맞춤 자리와 스크립트가 멈추는 자리(offsetLeft 기준)를 같게 — 다르면 멈춘 뒤 4px "툭" 당겨짐 */
.rail::-webkit-scrollbar { display: none; }
.rail-btn { position: absolute; top: var(--arrow-top); z-index: 1; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--navy); font-size: 0; cursor: pointer; opacity: .55; transition: opacity .2s ease; }
.rail-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.rail-btn.next::before { transform: translate(-70%, -50%) rotate(45deg); }
.rail-btn.prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.rail-btn:hover { opacity: 1; }
.rail-btn.prev { left: -36px; } .rail-btn.next { right: -36px; }
@media (max-width: 1220px) {
  .rail-wrap { padding-inline: 44px; }
  .rail-btn.prev { left: 2px; } .rail-btn.next { right: 2px; }
}
@media (max-width: 860px) {
  .rail-wrap { padding-inline: 32px; }
  .rail-btn { width: 32px; }
  .rail-btn.prev { left: 0; } .rail-btn.next { right: 0; }
}
.system { display: block; color: inherit; width: 340px; flex: none; scroll-snap-align: start; position: relative; }
/* 홈 Services 줄: Research Areas 와 같은 모양 — 3장, 가운데만 선명·크게, 양옆 작고 연하게. 크기는 안쪽 상자(.system-inner)만 바꾼다 (카드 자체를 줄이면 칸 맞춤이 어긋나 "뚝" 끌려감) */
.services-rail { padding: 24px 4px; margin: -24px -4px; gap: 8px; }
.services-rail .system { width: calc((100% - 16px) / 3); }
.system.is-center { z-index: 1; }
.system-inner { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); opacity: .45; transform: scale(.88); transition: opacity 1s cubic-bezier(.65,0,.35,1), transform 1s cubic-bezier(.65,0,.35,1); will-change: transform, opacity; backface-visibility: hidden; }
/* 이름·설명은 캡처 화면 위에 (검은 반투명 덮개 + 흰 글자 — Research Areas 카드와 같은 식, 사용자 요청) */
.system-inner::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.42); transition: background .4s ease; }
.system:hover .system-inner::after { background: rgba(0,0,0,.3); }
.system h3, .system p { position: absolute; left: 20px; right: 20px; z-index: 1; color: #fff; }
.system h3 { bottom: 40px; margin: 0; font-size: 18px; }
.system p { bottom: 18px; margin: 0; font-size: 14px; color: rgba(255,255,255,.84); }

.system.is-center .system-inner { opacity: 1; transform: scale(1.04); }
.rail.no-transition .system-inner { transition: none; }
.system:hover { text-decoration: none; }
.system .shot { display: block; overflow: hidden; background: var(--navy); height: 300px; }   /* Research Areas 카드와 같은 높이. 테두리·둥근 모서리는 .system-inner 가 */
.system img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.shot-text { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.shot-text b { font-size: 34px; font-weight: 400; margin-bottom: 8px; opacity: .8; }
.system:hover img { transform: scale(1.03); }

/* 주요 논문 (목록) */
.paper-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.paper-list li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.paper-list .year { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.paper-list h3 { font-size: 16.5px; font-weight: 600; }
.paper-list h3 a { color: var(--navy); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease, color .2s ease; }
.paper-list h3 a:hover { color: var(--accent); text-decoration: none; background-size: 100% 1px; }
.paper-list .meta { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.paper-list .meta b { font-weight: 500; color: var(--ink); }
.paper-list .links { margin-top: 8px; font-size: 13.5px; }
.paper-list .links a { color: var(--muted); margin-right: 16px; padding-bottom: 1px; border-bottom: 1px solid var(--line); transition: color .2s ease, border-color .2s ease; }
.paper-list .links a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* 최근 소식 + 사진 */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.news-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
/* 왼쪽 최근 소식 5건, 오른쪽은 사진 기록이 천천히 저절로 넘어가는 사진 칸 (home.js) — 목록 높이에 맞춤 */
.news-grid { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.news-photo { position: relative; min-height: 320px; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.news-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.news-photo img.is-hidden { opacity: 0; }
/* News 사진 넘김 단추: 사진 왼쪽·오른쪽 가운데에 꺾쇠만 (.rail-btn 과 같은 모양). 밝은 사진에서도 보이게 그림자 */
.nav-btn { position: absolute; top: calc(50% - 20px); z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; opacity: .85; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); transition: opacity .2s ease; }
.nav-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.nav-btn.prev::before { transform: translate(-30%, -50%) rotate(-135deg); }   /* ‹ */
.nav-btn.next::before { transform: translate(-70%, -50%) rotate(45deg); }     /* › */
.nav-btn:hover { opacity: 1; }
.nav-btn.prev { left: 4px; } .nav-btn.next { right: 4px; }
.news-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 32px 16px 14px; font-size: 13.5px; color: #fff; background: linear-gradient(transparent, rgba(9,34,61,.85)); }
/* 목록 페이지 넘기기 (site.js 가 만듦) */
#records { scroll-margin-top: 88px; } /* 페이지를 넘기면 목록 맨 위로 — 머리글에 가리지 않게 */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .2s ease; }
.pager button:hover:not(:disabled) { border-color: var(--navy); }
.pager button.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager-gap { align-self: center; width: 38px; text-align: center; color: var(--muted); }   /* 단추와 같은 폭 — 줄 길이가 쪽마다 안 변함 */

/* Contact: 왼쪽 안내 문장 + 항목 3줄(이름표 | 내용), 오른쪽 지도 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.contact-lead { margin: 0 0 28px; font-size: 19px; line-height: 1.6; color: var(--navy); }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 15px; font-weight: 600; color: var(--navy); }
.contact-list dd { margin: 0; font-size: 16px; color: var(--ink); }
.contact-list small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.contact-mail { font-size: 20px; font-weight: 700; color: var(--navy); }
.contact-copy { margin-left: 10px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; vertical-align: 3px; transition: border-color .2s ease, color .2s ease; }
.contact-copy:hover { border-color: var(--navy); color: var(--navy); }
.contact-map { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); background: var(--line); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-lead { font-size: 17px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .contact-map { height: 300px; min-height: 0; }
}

/* 논문 링크 한 줄: Paper · Code · arXiv · SSRN (_includes/paper-links.html, members.js 가 같은 모양으로 씀) */
.paper-links { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.paper-links a { color: var(--muted); border-bottom: 1px solid var(--line); transition: color .2s ease, border-color .2s ease; }
.paper-links a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
/* 논문의 JCR 상위 %: 상자 없이 파란 글자 (_includes/jcr-badge.html) */
.jcr-badge { margin-right: 8px; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* 바닥글 */
.footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: 14px; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; text-decoration: none; }
/* 푸터는 모든 페이지에서 한 줄로 납작하게 (PC 약 108px) — Services 의 고정 푸터와 같은 크기로 통일 (사용자 결정 2026-10-23) */
.footer b { display: inline; margin: 0 8px 0 0; font-size: 13px; font-weight: 600; color: #fff; }
.footer-top { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 12px; }
.footer-logo { display: inline-flex; }
.footer-logo img { width: auto; height: 40px; }   /* 어두운 바탕용 흰 글자 로고 */
.footer-contact { margin-left: auto; }
.footer-contact p { display: inline; margin: 0; }
/* 슬로건: 로고 옆에 세로 선을 두고 두 줄로 (큰 줄 + 흐린 줄). 로고 높이 안에 들어가 푸터 높이는 그대로 */
.footer-slogan { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); line-height: 1.35; }
.footer-slogan b { display: block; margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.footer-slogan p { margin: 1px 0 0; font-size: 12.5px; color: rgba(255,255,255,.6); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 9px; padding-bottom: 11px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12.5px; color: rgba(255,255,255,.5); }

/* 협력 기관 로고 띠(홈 맨 아래): 두 줄을 이어 붙인 트랙이 왼쪽으로 절반(한 줄 길이)만큼 40초에 걸쳐 움직여 끊김 없이 돈다. 양 끝은 흐리게. 마우스를 올려도 계속 간다(사용자 결정). 제목 없이 News 아래(맨 끝) */
.coop-section { padding: 48px 0 56px; }   /* 회색 News 구간 다음 흰 띠 */
html.js main .coop-section > .shell { opacity: 1; transform: none; transition: none; }   /* 로고 띠는 스크롤 등장 효과 없음 — 이미 움직이는 띠가 또 올라오면 이질감 (사용자 지적) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: coop-move 40s linear infinite; }
@keyframes coop-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.coop-row { display: flex; align-items: center; gap: 56px; margin: 0; padding: 0 28px; list-style: none; }
.coop-item { display: flex; align-items: center; justify-content: center; height: 56px; flex: none; }
.coop-item img { display: block; height: 36px; width: auto; }
.coop-item span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); white-space: nowrap; }   /* 로고 파일이 없는 기관은 이름 글자로 */

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .reel-track { animation: none; }
  .marquee, .reel { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-photo { min-height: 240px; order: -1; }
  .hero h1 { font-size: 40px; white-space: normal; }
  .final-title { font-size: 40px; white-space: normal; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 18px; padding-bottom: 14px; }   /* 휴대폰: 세로로, 간격은 좁게 */
  .footer-slogan { padding-left: 0; border-left: 0; }
  .footer-contact { margin-left: 0; }
  .system { width: 260px; margin-right: 16px; }
  .services-rail .system { width: 100%; margin-right: 0; }
  .system .shot { height: 240px; }
  .system-inner, .system.is-center .system-inner { transform: none; will-change: auto; }
  .reel { height: 320px; }
  /* 휴대폰 메뉴: ☰ 를 누르면 흰 메뉴가 위에서 부드럽게 내려오고, 나머지 화면은 어두워짐 (site.js) */
  .nav { position: absolute; left: 0; right: 0; top: 64px; z-index: 1; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(9,34,61,.12); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .35s ease, visibility 0s linear .35s; }
  .nav.open { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path .35s ease; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.active { border-bottom-color: var(--line); }
  .home:not(.hero-passed) .nav a { color: var(--ink); }   /* 휴대폰 메뉴 판은 흰색이라 글자는 늘 남색 */
  .home:not(.hero-passed) .nav a.active { color: var(--navy); border-bottom-color: var(--line); }
  .nav-backdrop { position: fixed; inset: 64px 0 0; background: rgba(9,34,61,.4); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
  .menu-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .35s ease; }
  .menu-open { overflow: hidden; }   /* 메뉴가 열린 동안 뒤 페이지는 스크롤 안 됨 (body 까지 막으면 머리글 고정이 풀려 같이 밀려 올라감) */
  .hamburger { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: background .2s ease; }
  .menu-open .hamburger { background: var(--bg2); }   /* 눌린 느낌 */
  .section { padding: 48px 0; }
}
