/* =========================================================
   NEURO Lab — 가상의 대학 신경회로연구실 (디코랩 연구실 홈페이지 디자인 샘플)
   색: 코랄 #FF4F5E · 짙은 남 #0D1440 · 연분홍 판 #FFEEF0 / 주제 색 기억(코랄)·운동(파랑)·수면(보라)
   글꼴: Pretendard(본문, SIL OFL 1.1) + Outfit(영문 제목·숫자, Google Fonts SIL OFL 1.1)
   ========================================================= */
:root {
  color-scheme: light;
  --navy: #0D1440;
  --navy-2: #1B2470;
  --navy-deep: #080C2B;
  --coral: #FF4F5E;
  --coral-ink: #D42A3B;
  --coral-soft: #FFD3D9;
  --pink: #FFEEF0;
  --pink-2: #FFE0E5;
  --ink: #0D1440;
  --muted: #4B5278;
  --line: #E1E3EF;
  --paper: #FFFFFF;
  --mem: #FF4F5E; --mem-ink: #D42A3B;
  --mot: #2D6BFF; --mot-ink: #1F4FD6;
  --slp: #8B5CF6; --slp-ink: #6A3BE0;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --en: "Outfit", var(--font);
  --hdr-h: 76px;
  --r: 14px;
  --r-lg: 22px;
  --gut: clamp(16px, 4vw, 40px);
}
@media (max-width: 1159px) { :root { --hdr-h: 62px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.75; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--mot); outline-offset: 2px; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.container--narrow { max-width: 900px; }
.num, .pub__no, .pyear__t, .pj__no { font-variant-numeric: tabular-nums; }
.br-pc { display: none; }
@media (min-width: 1024px) { .br-pc { display: inline; } }
.ph { display: inline-block; border: 1.5px dashed #A9AECB; border-radius: 6px; padding: 0 8px; color: var(--muted); font-size: .92em; background: rgba(255, 255, 255, .6); }
.ph--inline { padding: 0 6px; }
.ko-tag { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; font: 600 10px/1.6 var(--en); letter-spacing: .02em; color: var(--muted); background: #EEF0F7; vertical-align: 2px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; white-space: nowrap; flex: none; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--coral { background: var(--coral); color: var(--navy); }
.btn--coral:hover { background: #FF6B78; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--line { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--line:hover { background: var(--pink); }
.btn--block { width: 100%; }
.tlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--coral); }
.tlink:hover { color: var(--coral-ink); }
.tlink--memory { text-decoration-color: var(--mem); }
.tlink--motor { text-decoration-color: var(--mot); }
.tlink--sleep { text-decoration-color: var(--slp); }
.kicker { font: 600 15px/1.4 var(--font); color: var(--coral-ink); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--coral); }
.sec-title { font-size: clamp(1.65rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 700; }
.sec-head { margin-bottom: 36px; }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }

/* ---------- 샘플 안내 띠 ---------- */
.sample-banner { background: var(--navy-deep); color: #E8EAF8; font-size: 13px; line-height: 1.5; }
.sample-banner__inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; max-width: 1440px; }
.sample-banner__tag { flex: none; background: var(--coral); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.sample-banner a { color: var(--coral-soft); }

/* ---------- 머리: 가운데 로고, 1차 메뉴 좌우 나눔 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.hdr { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; height: var(--hdr-h); padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
.menu-btn { grid-column: 1; grid-row: 1; justify-self: start; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; display: grid; place-items: center; }
.menu-btn:hover { background: var(--pink); }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; width: 22px; }
.menu-btn__bars::after { top: 7px; width: 14px; }
.logo { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo__mark { width: 40px; height: 24px; color: var(--coral); flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font: 700 23px/1.05 var(--en); letter-spacing: -0.01em; }
.logo__sub { font-size: 12.5px; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.gnb { display: none; grid-row: 1; height: 100%; }
.gnb--l { grid-column: 1; justify-self: end; }
.gnb--r { grid-column: 3; justify-self: start; }
.gnb__list { display: flex; height: 100%; }
.gnb__item { position: relative; display: flex; min-width: 6.8rem; }
html[lang="en"] .gnb__item { min-width: 8.8rem; }
.gnb__link { display: flex; align-items: center; padding: 0 17px; font-size: 17px; font-weight: 600; text-decoration: none; position: relative; white-space: nowrap; }
.gnb__link::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 18px; height: 3px; border-radius: 3px; background: var(--coral); transform: scaleX(0); transition: transform .25s; }
.gnb__item:hover .gnb__link::after, .gnb__item.is-current .gnb__link::after { transform: scaleX(1); }
.gnb__item.is-current .gnb__link { color: var(--coral-ink); }
.gnb__sub { position: absolute; top: 100%; left: 0; min-width: 100%; padding: 18px 17px 22px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
.gnb__sub a { display: block; padding: 6px 0; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.gnb__sub a:hover, .gnb__sub a[aria-current="page"] { color: var(--coral-ink); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--mega-h, 0px); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(13, 20, 64, .35); transform-origin: top; transform: scaleY(0); transition: transform .25s; }
.site-header.is-mega::after { transform: scaleY(1); }
.site-header.is-mega .gnb__sub { visibility: visible; opacity: 1; transition: opacity .25s .05s, visibility 0s; }
.hdr__util { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 14px; }
.hdr__cta { display: none; min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (min-width: 1160px) {
  .gnb { display: block; }
}
@media (min-width: 1380px) { .hdr__cta { display: inline-flex; } }
@media (max-width: 1379px) { html[lang="en"] .gnb { display: none; } }
@media (max-width: 1599px) { html[lang="en"] .hdr__cta { display: none; } }
@media (max-width: 1159px) {
  .hdr { column-gap: 8px; }
  .lang .i-globe { display: none; }
  .logo__name { font-size: 20px; }
  .logo__sub { font-size: 11.5px; }
  .logo__mark { width: 32px; height: 20px; }
}

/* 언어 전환: 지구본 + KO / EN */
.lang { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow-wrap: normal; font: 600 14px/1 var(--en); color: var(--muted); }
.lang .i-globe { width: 18px; height: 18px; margin-right: 2px; }
.lang a { text-decoration: none; padding: 5px 7px; border-radius: 6px; }
.lang a:hover { color: var(--navy); }
.lang a[aria-current="true"] { background: var(--pink-2); color: var(--coral-ink); }
.lang--menu { margin: 24px 0 16px; font-size: 16px; }

/* 전체 메뉴 */
.site-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 400; background: #fff; overflow-y: auto; padding: 0 var(--gut) 32px; }
.site-menu__head { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.site-menu__title { font-weight: 700; }
.site-menu__close { width: 44px; height: 44px; border: 0; background: var(--pink); border-radius: 12px; font-size: 26px; line-height: 1; cursor: pointer; }
.site-menu__list { display: grid; gap: 4px 40px; max-width: 1100px; }
@media (min-width: 760px) { .site-menu__list { grid-template-columns: repeat(3, 1fr); padding-top: 20px; } }
.site-menu__group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.site-menu__link { display: block; font-size: 20px; font-weight: 700; text-decoration: none; margin-bottom: 6px; }
.site-menu__group ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-menu__group ul a { color: var(--muted); text-decoration: none; font-size: 16px; }
.site-menu__group ul a[aria-current="page"] { color: var(--coral-ink); font-weight: 700; }
body.nav-open { overflow: hidden; }

/* =========================================================
   메인 히어로 — 스파이크 래스터 → 뇌 시상 단면 (sticky scrub)
   스크립트가 없거나 동작 줄이기면 끝 상태(뇌 단면 + 기록 위치)를 바로 보인다
   ========================================================= */
.hero { position: relative; background: var(--navy); color: #fff; }
.hero__stage {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto; align-items: center;
  column-gap: clamp(24px, 4vw, 64px); min-height: 600px; height: calc(100svh - var(--hdr-h) - var(--sample-banner-h, 0px));
  padding: 32px max(var(--gut), calc((100vw - 1360px) / 2)) 20px; overflow: hidden;
}
.has-motion .hero.is-scrub { height: 250vh; }
.has-motion .hero.is-scrub .hero__stage { position: sticky; top: var(--hdr-h); }
.hero__text { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; font: 500 16px/1.4 var(--en); color: var(--coral-soft); margin-bottom: 22px; }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 79, 94, .25); }
.hero__title { font-size: clamp(2.1rem, 1.1rem + 2.8vw, 4.1rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; }
.hero__title b { font-weight: 700; color: var(--coral); }
.hero__lead { margin-top: 22px; max-width: 30em; color: rgba(255, 255, 255, .82); font-size: 18px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__art { grid-column: 2; grid-row: 1; position: relative; margin: 0; width: 100%; aspect-ratio: 600 / 440; max-height: 100%; justify-self: center; align-self: center; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-brain { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hb-cerebrum { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .6); stroke-width: 1.6; }
.hb-gyrus { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.4; stroke-linecap: round; }
.hb-region { stroke-width: 1.4; }
.hb-region--memory { fill: rgba(255, 79, 94, .22); stroke: #FF7A86; }
.hb-region--motor { fill: rgba(45, 107, 255, .26); stroke: #6E97FF; }
.hb-region--sleep { fill: rgba(139, 92, 246, .3); stroke: #B39BFF; }
.hb-site--memory { fill: #FF8C96; }
.hb-site--motor { fill: #8FB0FF; }
.hb-site--sleep { fill: #C6B4FF; }
.hb-label { fill: rgba(255, 255, 255, .78); font: 500 13px var(--font); }
/* 스크립트가 래스터를 그리면 단면은 스크롤 진행(--p)만큼 드러난다 */
.raster-on .hero-brain { opacity: var(--p, 0); }
.raster-on .hb-sites { opacity: .35; }
.hero__cap { position: absolute; left: 0; right: 0; bottom: -6px; transform: translateY(100%); font-size: 14px; color: rgba(255, 255, 255, .7); text-align: center; }
.hero__capt { display: none; }
.hero__capt[data-cap="1"] { display: inline; }
.raster-on .hero__capt { display: inline; transition: opacity .3s; }
.raster-on .hero__art[data-step="0"] .hero__capt[data-cap="1"], .raster-on .hero__art[data-step="1"] .hero__capt[data-cap="0"] { display: none; }
.hero__ctrl { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
.hero__pause { white-space: nowrap; display: none; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font-size: 14px; cursor: pointer; }
.raster-on .hero__pause { display: inline-flex; }
.hero__pause:hover { border-color: #fff; }
.hero__pause-i { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero__pause[aria-pressed="true"] .hero__pause-i { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero__hint { font-size: 14px; color: rgba(255, 255, 255, .6); display: none; align-items: center; gap: 10px; }
.has-motion .is-scrub .hero__hint { display: flex; }
.hero__hint::after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--coral), transparent); }
@media (max-width: 899px) {
  .hero__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; min-height: 640px; padding-top: 18px; row-gap: 14px; }
  .hero__art { grid-column: 1; grid-row: 1; height: 100%; width: auto; max-width: 100%; min-height: 200px; }
  .hero__cap { bottom: 0; transform: none; position: absolute; font-size: 12.5px; }
  .hero__text { grid-row: 2; }
  .hero__eyebrow { margin-bottom: 10px; font-size: 14px; }
  .hero__title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.4rem); }
  .hero__lead { font-size: 15.5px; margin-top: 12px; }
  .hero__btns { margin-top: 18px; }
  .hero__btns .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
  .hero__ctrl { grid-row: 3; padding-top: 0; }
  .hero__hint, .has-motion .is-scrub .hero__hint { display: none; }
  .hero__art { aspect-ratio: auto; width: 100%; }
  .hero__canvas, .hero-brain { height: calc(100% - 24px); }
}
@media (max-width: 420px) { .hero__lead { display: none; } }

/* =========================================================
   뇌 부위 지도 (대표 기능)
   ========================================================= */
.home-map { background: var(--pink); padding: clamp(64px, 8vw, 112px) 0; }
.bmap { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .bmap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }
.bmap__art { background: #fff; border-radius: var(--r-lg); padding: clamp(12px, 2.4vw, 32px); position: relative; }
@media (min-width: 1000px) { .bmap__art { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.bmap__svg { width: 100%; height: auto; overflow: visible; }
.bm-cerebrum { fill: #F7F8FC; stroke: var(--navy); stroke-width: 2; }
.bm-gyrus { fill: none; stroke: #D7DAEA; stroke-width: 1.6; stroke-linecap: round; }
.bm-region { cursor: pointer; outline: none; }
.bm-region path { stroke-width: 2; transition: fill .2s, opacity .2s, stroke-width .2s; }
.bm-region--memory path { fill: #FFC2C8; stroke: var(--mem-ink); }
.bm-region--motor path { fill: #C4D5FF; stroke: var(--mot-ink); }
.bm-region--sleep path { fill: #DCCFFF; stroke: var(--slp-ink); }
.bm-region:hover path { stroke-width: 3.5; }
.bm-region:focus-visible path { stroke: var(--navy); stroke-width: 4.5; }
.bm-region--memory[aria-pressed="true"] path { fill: var(--mem); }
.bm-region--motor[aria-pressed="true"] path { fill: var(--mot); }
.bm-region--sleep[aria-pressed="true"] path { fill: var(--slp); }
.bmap.has-sel .bm-region:not([aria-pressed="true"]) path { opacity: .45; }
.bm-abbr { font: 700 14px var(--en); fill: var(--navy); pointer-events: none; }
.bm-abbr.is-on { fill: #fff; }
.bm-dir { font: 500 13px var(--font); fill: var(--muted); }
@media (max-width: 640px) { .bm-abbr { font-size: 22px; } .bm-dir { font-size: 20px; } }
.bmap__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.lg { display: flex; align-items: center; gap: 7px; }
.lg::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
.lg--memory::before { background: var(--mem); }
.lg--motor::before { background: var(--mot); }
.lg--sleep::before { background: var(--slp); }
.bmap__chips, .rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 6px; border-radius: 999px; border: 1.5px solid #D5D8E8; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.rchip--all { padding-left: 14px; }
.rchip__abbr { display: inline-grid; place-items: center; min-width: 32px; height: 28px; padding: 0 6px; border-radius: 999px; font: 700 12px var(--en); color: #fff; }
.rchip--memory .rchip__abbr { background: var(--mem-ink); }
.rchip--motor .rchip__abbr { background: var(--mot-ink); }
.rchip--sleep .rchip__abbr { background: var(--slp-ink); }
.rchip__n { font: 500 13px var(--en); color: var(--muted); }
.rchip:hover { border-color: var(--navy); }
.rchip[aria-pressed="true"] { color: #fff; border-color: transparent; background: var(--navy); }
.rchip--memory[aria-pressed="true"] { background: var(--mem-ink); }
.rchip--motor[aria-pressed="true"] { background: var(--mot-ink); }
.rchip--sleep[aria-pressed="true"] { background: var(--slp-ink); }
.rchip[aria-pressed="true"] .rchip__abbr { background: rgba(255, 255, 255, .22); }
.rchip[aria-pressed="true"] .rchip__n { color: rgba(255, 255, 255, .85); }
.bmap__panels { margin-top: 18px; display: grid; gap: 16px; }
.bpanel { background: #fff; border-radius: var(--r-lg); padding: 26px 26px 28px; border-top: 6px solid var(--navy); }
.bpanel--memory { border-top-color: var(--mem); }
.bpanel--motor { border-top-color: var(--mot); }
.bpanel--sleep { border-top-color: var(--slp); }
.bpanel__k { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.bpanel__abbr { font: 700 13px var(--en); background: var(--navy); color: #fff; border-radius: 6px; padding: 1px 7px; }
.bpanel__name { font-size: 28px; font-weight: 700; margin: 6px 0 10px; }
.bpanel__q { font-size: 18px; line-height: 1.6; }
.bpanel--intro .bpanel__q { margin-top: 8px; }
.bpanel__h { margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--muted); }
.bpanel__qs { margin-top: 6px; }
.bpanel__qs li { position: relative; padding-left: 16px; font-size: 16px; }
.bpanel__qs li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 2px; background: currentColor; }
.bpanel__topics { margin-top: 16px; display: grid; gap: 8px; }
.bpanel__topics .tlink { width: 100%; justify-content: space-between; text-decoration: none; padding: 12px 16px; border-radius: 12px; background: var(--pink); border-left: 5px solid; }
.bpanel__topics .tlink span { font: 600 14px var(--en); color: var(--muted); }
.bpanel__topics .tlink--memory { border-color: var(--mem); }
.bpanel__topics .tlink--motor { border-color: var(--mot); }
.bpanel__topics .tlink--sleep { border-color: var(--slp); }
.bpanel__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.mini { margin-top: 6px; }
.mini li { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.mini__no, .mini__y { font: 500 14px var(--en); color: var(--muted); }

/* ---------- 메인: 소개 + 주제 줄(스파이크 열) ---------- */
.home-intro { padding: clamp(72px, 9vw, 128px) 0; }
.home-intro__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .home-intro__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: center; } }
.home-intro__big { font-size: clamp(1.5rem, 1rem + 1.7vw, 2.45rem); font-weight: 400; line-height: 1.45; }
.home-intro__big b { color: var(--coral-ink); font-weight: 700; }
.home-intro__who { margin-top: 22px; color: var(--muted); }
.home-intro__links { display: flex; gap: 22px; margin-top: 18px; }
.home-intro__cap { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.trows { border-top: 2px solid var(--navy); }
.trow__a { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 4.2rem; grid-template-areas: "name train n" "regs train n"; column-gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.trow__a:hover { background: var(--pink); }
.trow__name { grid-area: name; font-weight: 700; font-size: 18px; }
.trow__regs { grid-area: regs; font-size: 13.5px; color: var(--muted); }
.trow__train { grid-area: train; position: relative; height: 40px; }
.trow__train::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #CBD0E4; }
.trow__train i { position: absolute; top: 6px; width: 3px; height: 28px; border-radius: 2px; margin-left: -1.5px; }
.trow--memory i { background: var(--mem); }
.trow--motor i { background: var(--mot); }
.trow--sleep i { background: var(--slp); }
.trow__n { grid-area: n; text-align: right; font: 300 30px/1 var(--en); }
.trow__n small { font: 500 13px var(--font); color: var(--muted); margin-left: 2px; }
.trows__axis { display: flex; justify-content: space-between; margin-left: calc(11rem + 18px); margin-right: calc(4.2rem + 18px); font: 500 12px var(--en); color: var(--muted); padding-top: 6px; }
@media (max-width: 560px) {
  .trow__a { grid-template-columns: minmax(0, 1fr) 3.4rem; grid-template-areas: "name n" "regs n" "train train"; row-gap: 2px; }
  .trow__train { margin-top: 8px; }
  .trows__axis { margin: 0; }
}

/* ---------- 메인: 최근 논문 ---------- */
.home-papers { background: #F5F6FB; padding: clamp(72px, 9vw, 128px) 0; }
.home-papers__grid { display: grid; gap: 36px; }
@media (min-width: 1000px) {
  .home-papers__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
  .home-papers__head { position: sticky; top: calc(var(--hdr-h) + 32px); }
}
.home-papers__head .btn { margin-top: 24px; }
.auto-note { display: flex; gap: 10px; align-items: baseline; margin-top: 16px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.auto-note__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #18B26B; box-shadow: 0 0 0 3px rgba(24, 178, 107, .2); transform: translateY(-1px); }
.feat { display: grid; background: #fff; border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .feat { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.feat__fig svg { width: 100%; height: 100%; object-fit: cover; }
.feat__fig { background: var(--navy); }
.feat__txt { padding: 26px 28px 30px; }
.feat__k { display: flex; flex-wrap: wrap; gap: 6px; }
.feat__t { margin-top: 14px; font-size: 21px; line-height: 1.4; }
.feat__t a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.feat__t a:hover { color: var(--coral-ink); }
.feat__sum { margin-top: 12px; font-size: 16px; color: var(--muted); }
.feat__v { margin-top: 12px; font-size: 14px; }

/* 논문 항목(논문 목록 표준) */
.pubs { counter-reset: none; }
.pub { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub__no { font: 300 26px/1.1 var(--en); color: #9096B8; padding-top: 2px; }
.pub__title { font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: #9AA0C4; }
.pub__title:hover { color: var(--coral-ink); text-decoration-color: var(--coral); }
.pub__auth { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.pub__auth b { color: var(--navy); }
.pub__auth sup { font-size: .75em; color: var(--coral-ink); font-weight: 700; }
.pub__venue { font-size: 15px; line-height: 1.6; }
.pub__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; }
.pub__tags, .pub__btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ttag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--navy); font-size: 12.5px; font-weight: 600; }
.rtag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: #F1F2F8; }
.rtag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.rtag--memory::before { background: var(--mem); }
.rtag--motor::before { background: var(--mot); }
.rtag--sleep::before { background: var(--slp); }
.obtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font: 600 13px var(--en); text-decoration: none; cursor: pointer; letter-spacing: .02em; }
.obtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.obtn:hover { background: var(--navy); color: #fff; }
.obtn--cite { font-family: var(--font); letter-spacing: 0; border-color: #C7CBE0; }
.pubs--compact .pub { padding: 16px 0; grid-template-columns: 2.8rem minmax(0, 1fr); }
.pubs--compact .pub__no { font-size: 20px; }
.pubs--compact .pub__title { font-size: 16.5px; }
.pubs--compact .pub__auth, .pubs--compact .pub__venue { font-size: 14px; }
.home-papers .pubs--compact { margin-top: 12px; }

/* ---------- 메인: 소식 — 슬라이드 글라스 카드 ---------- */
.home-news { padding: clamp(72px, 9vw, 128px) 0; }
.home-news__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .home-news__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.slides { display: grid; gap: 22px; }
.slide__a { display: grid; grid-template-columns: 30% minmax(0, 1fr); grid-template-areas: "label tissue" "title title"; text-decoration: none; row-gap: 12px; }
.slide__label, .slide__tissue { aspect-ratio: auto; height: clamp(110px, 12vw, 150px); }
.slide__label {
  grid-area: label; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px;
  border-radius: 12px 0 0 12px; border: 1.5px solid #CBD3E6; border-right: 0;
  background: repeating-linear-gradient(45deg, #EDF1F8 0 3px, #F7F9FC 3px 6px);
}
.slide__date { font: 600 15px var(--en); }
.slide__cat { font-size: 13px; font-weight: 700; color: var(--coral-ink); }
.slide__no { font: 500 12px var(--en); color: var(--muted); }
.slide__tissue { grid-area: tissue; position: relative; overflow: hidden; border-radius: 0 12px 12px 0; border: 1.5px solid #CBD3E6; background: #E9F0F8; padding: 10px 10px 10px 14px; }
.slide__tissue svg { width: 100%; height: 100%; border-radius: 4px; transition: transform .5s; }
.slide__a:hover .slide__tissue svg { transform: scale(1.04); }
.slide__title { grid-area: title; font-size: 18px; font-weight: 700; line-height: 1.45; }
.slide__a:hover .slide__title { color: var(--coral-ink); }
.slide__line { grid-column: 1 / -1; font-size: 15px; color: var(--muted); margin-top: -6px; }
.slides--en { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.slides--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 36px 28px; }
.nl { border-top: 2px solid var(--navy); }
.nl__h { font-size: 18px; padding: 14px 0 6px; }
.nl__list a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cat t" ". d"; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.nl__list a:hover .nl__t { color: var(--coral-ink); }
.nl__cat { grid-area: cat; font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--pink-2); color: var(--coral-ink); align-self: start; margin-top: 2px; }
.nl__t { grid-area: t; font-size: 16px; line-height: 1.5; font-weight: 600; }
.nl__list time { grid-area: d; font: 500 13px var(--en); color: var(--muted); }

/* ---------- 메인: 공동연구 띠 ---------- */
.home-contact { background: var(--navy); color: #fff; padding: clamp(64px, 8vw, 104px) 0; position: relative; overflow: hidden; }
.home-contact::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 79, 94, .25); }
.home-contact__in { position: relative; text-align: center; }
.home-contact__t { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.5rem); max-width: 22em; margin: 0 auto; background: var(--navy); padding: 0 12px; }
.home-contact__d { margin: 16px auto 0; max-width: 34em; color: rgba(255, 255, 255, .8); background: var(--navy); }
.home-contact__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- 바닥글 ---------- */
.site-footer { background: var(--navy-deep); color: #C9CDE8; padding: 56px 0 36px; font-size: 15px; }
.site-footer a { color: #fff; }
.logo--footer { color: #fff; }
.logo--footer .logo__sub { color: #A3A9D1; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__policy { display: flex; gap: 20px; }
.site-footer__policy .is-strong { color: #fff; font-weight: 700; }
.site-footer .ph { background: transparent; color: #C9CDE8; border-color: #5E668F; }
.site-footer__info { display: grid; gap: 8px 32px; margin: 24px 0; }
@media (min-width: 760px) { .site-footer__info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer__info div { display: flex; gap: 12px; }
.site-footer__info dt { flex: none; width: 5.5em; color: #8E95C2; }
.site-footer__info dd { margin: 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: #8E95C2; }
.site-footer__credit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.credit-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.credit-link img { height: 18px; width: auto; filter: brightness(0) invert(1); opacity: .8; }

/* =========================================================
   서브 머리 — 연분홍 판 가운데 정렬 + 막전위 선 위 세그먼트 2차 메뉴
   ========================================================= */
.phead { background: var(--pink); padding-top: clamp(36px, 5vw, 64px); text-align: center; }
.crumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 14px; color: var(--muted); }
.crumb li + li::before { content: "/"; margin-right: 4px; color: #B1B6D2; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--coral-ink); }
.phead__en { margin-top: 18px; font: 200 clamp(2.6rem, 1.4rem + 4.2vw, 5.6rem)/1 var(--en); letter-spacing: -0.03em; color: var(--coral); }
.phead__title { margin-top: 14px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 700; }
.phead__desc { margin: 10px auto 0; max-width: 36em; color: var(--muted); }
.phead__upd { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: #fff; color: var(--muted); }
.phead__line { position: relative; height: 72px; margin-top: 22px; }
.phead--seg .phead__line { height: 96px; }
.phead__trace { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 60px; transform: translateY(-50%); }
.phead__trace path { fill: none; stroke: var(--coral); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.seg { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 var(--gut); }
.seg__list { display: inline-flex; max-width: 100%; padding: 5px; border-radius: 999px; background: var(--navy); box-shadow: 0 0 0 6px var(--pink); overflow-x: auto; scrollbar-width: none; }
.seg__list::-webkit-scrollbar { display: none; }
.seg__list li { flex: 1 0 auto; }
.seg__list a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: background-color .2s, color .2s; }
.seg__list a:hover { background: rgba(255, 255, 255, .12); }
.seg__list a[aria-current="page"] { background: var(--coral); color: var(--navy); font-weight: 700; }
.seg__list .ko-tag { background: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 640px) {
  .seg__list { width: 100%; }
  .seg__list a { padding: 0 12px; font-size: 14px; }
}
.page { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(72px, 8vw, 112px); }
.page--post { padding-top: 48px; }
.blk { margin-top: clamp(48px, 6vw, 80px); }
.blk__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.blk__t { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.85rem); font-weight: 700; margin-bottom: 18px; }
.blk__head .blk__t { margin-bottom: 0; }
.blk__count { font-size: 15px; color: var(--muted); }
.blk__count b { font: 600 20px var(--en); color: var(--navy); margin-right: 2px; }
.blk__more { margin-top: 24px; }
.note { margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.note--top { margin: 0 0 28px; }
.prose p + p { margin-top: 1em; }

/* 인사말 */
.greet { display: grid; gap: 32px; }
@media (min-width: 860px) { .greet { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; } }
.greet__fig { margin: 0; }
.greet__portrait, .pi__photo { aspect-ratio: 5 / 6; border-radius: var(--r-lg); background: var(--pink-2); display: grid; place-items: end center; overflow: hidden; }
.greet__portrait svg, .pi__photo svg { width: 72%; fill: #F2A7B0; }
.greet__fig figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.greet__fig figcaption b { color: var(--navy); font-size: 18px; margin-right: 6px; }
.greet__lead { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-weight: 700; line-height: 1.5; color: var(--navy); margin-bottom: 20px; }
.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 24px; border-radius: var(--r-lg); background: #F5F6FB; }
.step__n { display: block; font: 200 52px/1 var(--en); color: var(--coral); }
.step__t { font-size: 20px; margin: 10px 0 8px; }
.step p { font-size: 16px; color: var(--muted); }
.hist { position: relative; display: grid; gap: 18px; }
@media (min-width: 760px) {
  .hist { grid-template-columns: repeat(4, 1fr); padding-top: 26px; }
  .hist::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--navy); }
  .hist li { position: relative; }
  .hist li::before { content: ""; position: absolute; top: -26px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--coral); border: 3px solid #fff; }
}
.hist__y { display: block; font: 600 24px var(--en); }
.hist__t { color: var(--muted); font-size: 16px; }

/* 오시는 길 */
.loc { display: grid; gap: 28px; }
@media (min-width: 900px) { .loc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.loc__map { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.loc__map img { width: 100%; height: auto; }
.loc__info div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.loc__info dt { font-weight: 700; font-size: 15px; }
.loc__info dd { margin: 4px 0 0; color: var(--muted); }
.contact__mail { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mailtpl { margin-top: 22px; padding: 20px; border-radius: var(--r-lg); background: #F5F6FB; display: grid; gap: 14px; justify-items: start; }
.mailtpl__pre { margin: 0; white-space: pre-wrap; font: 15px/1.7 var(--font); }
.contact__note, .copy-note { margin-top: 12px; font-size: 14.5px; color: var(--coral-ink); font-weight: 600; min-height: 1.5em; }
.copy-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 20px; z-index: 50; min-height: 0; }
.copy-note:empty { display: none; }

/* 구성원 */
.pi { display: grid; gap: 28px; padding-bottom: 40px; border-bottom: 2px solid var(--navy); }
@media (min-width: 760px) { .pi { grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: center; } }
.pi__photo { max-width: 240px; }
.pi__role { font-size: 15px; font-weight: 700; color: var(--coral-ink); }
.pi__name { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); margin: 6px 0 16px; }
.pi__name span { font: 300 .6em var(--en); color: var(--muted); margin-left: 8px; }
.pi__cv li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding: 6px 0; font-size: 16px; }
.pi__cv li > span:first-child { font: 500 15px var(--en); color: var(--muted); }
.pi__mail { margin-top: 14px; }
.flip-note { margin: 28px 0 0; font-size: 14.5px; color: var(--muted); }
.pgroup { margin-top: 44px; }
.pgroup__t { display: flex; align-items: baseline; gap: 10px; font-size: 22px; margin-bottom: 20px; }
.pgroup__t span { font: 500 15px var(--en); color: var(--muted); }
.pcards { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1160px) {
  .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 28px; }
  .pcard:nth-child(2n) { transform: translateY(28px); }
}
.pcard { position: relative; perspective: 1200px; }
.pcard__in { position: relative; min-height: 230px; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.pcard__front, .pcard__back { position: absolute; inset: 0; border-radius: var(--r-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 22px; }
.pcard__front { background: #F5F6FB; display: flex; flex-direction: column; }
.pcard__back { background: var(--navy); color: #fff; transform: rotateY(180deg); display: flex; align-items: center; }
.pcard__ini { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 300 24px var(--en); color: #fff; margin-bottom: auto; }
.pcard--memory .pcard__ini { background: var(--mem-ink); }
.pcard--motor .pcard__ini { background: var(--mot-ink); }
.pcard--sleep .pcard__ini { background: var(--slp-ink); }
.pcard__name { margin-top: 16px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.pcard__name span { display: block; font: 400 14px var(--en); color: var(--muted); }
.pcard__topic { font-size: 15px; line-height: 1.5; margin-top: 6px; }
.pcard__tag { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #fff; }
.pcard__back dl { width: 100%; }
.pcard__back div { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.pcard__back dt { font-size: 12.5px; color: #A3A9D1; }
.pcard__back dd { margin: 0; font-size: 15px; }
.pcard__back a { color: #fff; }
.pcard__back .ph { color: #fff; border-color: #6A72A0; background: transparent; }
.pcard__flip { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; font-size: 18px; cursor: pointer; }
.pcard.is-flipped .pcard__in, .pcard:focus-within .pcard__in { transform: rotateY(180deg); }
.pcard.is-flipped .pcard__flip { background: var(--coral); border-color: var(--coral); }
@media (hover: hover) { .pcard:hover .pcard__in { transform: rotateY(180deg); } }
@media (max-width: 559px) { .pcard__in { min-height: 200px; } }

/* 표 */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { border-bottom: 2px solid var(--navy); font-size: 14px; color: var(--muted); }
.tbl--kv th { width: 9rem; font-size: 15px; }
@media (max-width: 640px) {
  .tbl:not(.board):not(.tbl--kv) thead { display: none; }
  .tbl:not(.board):not(.tbl--kv) tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl:not(.board):not(.tbl--kv) th, .tbl:not(.board):not(.tbl--kv) td { display: block; border: 0; padding: 2px 0; }
  .tbl--kv th { width: 6.5rem; }
}

/* 연구 지도 페이지 */
.qcards { display: grid; gap: 16px; }
@media (min-width: 640px) { .qcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .qcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qcard { padding: 22px; border-radius: var(--r-lg); background: #F5F6FB; border-left: 5px solid; display: flex; flex-direction: column; gap: 10px; }
.qcard--memory { border-color: var(--mem); }
.qcard--motor { border-color: var(--mot); }
.qcard--sleep { border-color: var(--slp); }
.qcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qcard__tags .rtag { background: #fff; }
.qcard__t { font-size: 18px; }
.qcard__m { font-size: 14.5px; color: var(--muted); }
.qcard .tlink { margin-top: auto; font-size: 15px; }
.is-fading { animation: nfade .25s ease-out; }
@keyframes nfade { from { opacity: .2; } to { opacity: 1; } }

/* 연구 주제 상세 */
.dfig { margin: 0; }
.dfig svg { width: 100%; height: auto; border-radius: var(--r-lg); }
.dfig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.dq { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.85; max-width: 44em; }
.dregs { display: flex; gap: 6px; margin-top: 16px; }
.chips-p { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-p { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #F5F6FB; font-weight: 700; }
.chip-p small { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.chip-p__ini { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 500 13px var(--en); color: #fff; background: var(--navy); }
.chip-p--memory .chip-p__ini { background: var(--mem-ink); }
.chip-p--motor .chip-p__ini { background: var(--mot-ink); }
.chip-p--sleep .chip-p__ini { background: var(--slp-ink); }
.olinks { display: grid; gap: 14px; }
@media (min-width: 640px) { .olinks { grid-template-columns: 1fr 1fr; } }
.olink { display: flex; flex-direction: column; padding: 22px 24px; border-radius: var(--r-lg); color: #fff; text-decoration: none; }
.olink span { font-size: 21px; font-weight: 700; }
.olink small { opacity: .85; font-size: 14px; }
.olink--memory { background: var(--mem-ink); }
.olink--motor { background: var(--mot-ink); }
.olink--sleep { background: var(--slp-ink); }
.olink:hover { filter: brightness(1.1); }

/* 논문 목록 */
.pnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 20px; border-radius: var(--r); background: #F5F6FB; }
.pnote .auto-note { margin: 0; }
.pnote__mark { font-size: 14px; color: var(--muted); }
.pf { margin-top: 28px; }
.pf__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.ptabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line); }
.ptab { position: relative; border: 0; background: transparent; padding: 10px 14px; font-weight: 600; font-size: 16px; color: var(--muted); cursor: pointer; }
.ptab span { font: 500 13px var(--en); margin-left: 5px; }
.ptab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 3px; background: var(--coral); transform: scaleX(0); transition: transform .2s; }
.ptab[aria-pressed="true"] { color: var(--navy); }
.ptab[aria-pressed="true"]::after { transform: scaleX(1); }
.pf__search { display: flex; gap: 8px; }
.pf__search input, .board-search input { height: 46px; min-width: 0; width: 240px; padding: 0 14px; border: 1.5px solid #C7CBE0; border-radius: 12px; font-size: 16px; background: #fff; }
.pf__search .btn, .board-search .btn { min-height: 46px; padding: 0 18px; }
.rchips { margin-top: 18px; }
.pf__status { margin-top: 18px; font-size: 15px; color: var(--muted); }
.pf__status b { font: 600 20px var(--en); color: var(--navy); margin-right: 2px; }
.pf__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 8px; }
.pf__grid > *, .pf__bar > * { min-width: 0; max-width: 100%; }
@media (min-width: 1000px) {
  .pf__grid { grid-template-columns: 130px minmax(0, 1fr); gap: 40px; }
  .pf__grid .ynav ul { position: sticky; overflow: visible; top: calc(var(--hdr-h) + 24px); display: grid; gap: 2px; }
}
.ynav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 4px 0; }
.ynav a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font: 600 18px var(--en); white-space: nowrap; }
.ynav a span { font-size: 13px; color: var(--muted); font-weight: 500; }
.ynav a:hover { background: var(--pink); }
.ynav a[aria-current="true"] { background: var(--navy); color: #fff; }
.ynav a[aria-current="true"] span { color: #C9CDE8; }
@media (max-width: 999px) { .ynav a { background: #F5F6FB; } }
.pyear { scroll-margin-top: calc(var(--hdr-h) + 20px); }
.pyear + .pyear { margin-top: 36px; }
.pyear__t { display: flex; align-items: baseline; gap: 12px; font: 300 44px/1.1 var(--en); padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.pyear__n { font: 500 15px var(--font); color: var(--muted); }
.pyear__n b { font-family: var(--en); }
.pf__empty { padding: 40px 0; color: var(--muted); }
@media (max-width: 640px) {
  .pf__search { width: 100%; }
  .pf__search input, .board-search input { flex: 1; width: auto; }
  .ptabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .ptab { white-space: nowrap; padding: 10px 10px; font-size: 15px; }
  .rchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .rchip { flex: none; }
  .pub { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 10px; }
  .pub__no { font-size: 19px; }
  .pub__title { font-size: 17px; }
}

/* 과제(프로젝트 목록 표준) */
.bigtabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--line); }
.bigtabs a { position: relative; padding: 14px 8px 16px; text-align: center; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); font-weight: 700; color: var(--muted); text-decoration: none; }
.bigtabs a span { font: 500 .7em var(--en); margin-left: 6px; }
.bigtabs a[aria-current="page"] { color: var(--coral-ink); }
.bigtabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--coral); }
.ychips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ychip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #C7CBE0; background: #fff; font: 600 15px var(--en); cursor: pointer; }
.ychip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 640px) { .ychips { flex-wrap: nowrap; overflow-x: auto; } .ychip { flex: none; } }
.pjf__total { margin-top: 20px; font: 500 16px var(--en); color: var(--muted); }
.pjf__total b { color: var(--navy); font-size: 22px; }
.pjyear { margin-top: 28px; }
.pjyear__t { display: flex; align-items: baseline; gap: 10px; font: 300 34px var(--en); border-bottom: 2px solid var(--navy); padding-bottom: 6px; }
.pjyear__t span { font: 500 14px var(--font); color: var(--muted); }
.pj { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 12px 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pj__no { font: 400 15px var(--en); color: var(--muted); padding-top: 3px; }
.pj__t { font-size: 18px; font-weight: 700; line-height: 1.45; }
.pj__kv { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 8px 0 0; font-size: 15px; }
.pj__kv div { display: flex; gap: 8px; }
.pj__kv dt { color: var(--muted); }
.pj__kv dd { margin: 0; }
.pj__kv .num { font-family: var(--en); font-weight: 500; }
.pj__tag { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px; color: #fff; white-space: nowrap; }
.pj__tag--memory { background: var(--mem-ink); }
.pj__tag--motor { background: var(--mot-ink); }
.pj__tag--sleep { background: var(--slp-ink); }
@media (max-width: 640px) { .pj { grid-template-columns: 2rem minmax(0, 1fr); } .pj__tag { grid-column: 2; justify-self: start; } }

/* 게시판 */
.board-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.board-cates { display: flex; flex-wrap: wrap; gap: 6px; }
.board-cates button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #C7CBE0; background: #fff; font-weight: 600; cursor: pointer; }
.board-cates button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.board-search { display: flex; gap: 8px; }
.board-total { margin: 20px 0 8px; font-size: 15px; color: var(--muted); }
.board td a { text-decoration: none; font-weight: 600; }
.board td a:hover { color: var(--coral-ink); }
.board .td-num, .board .td-date, .board .td-cate { white-space: nowrap; font-size: 14.5px; color: var(--muted); }
.board .td-num, .board .td-date { font-family: var(--en); }
.board .is-notice { background: var(--pink); }
.pin { font: 700 12px var(--font); color: var(--coral-ink); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pager button { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid #C7CBE0; background: #fff; font: 600 15px var(--en); cursor: pointer; }
.pager button[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 640px) {
  .board .td-num, .board .td-cate { display: none; }
  .board-search { width: 100%; }
}

/* 글 보기 */
.post__cate { font-size: 14px; font-weight: 700; color: var(--coral-ink); }
.post__title { margin-top: 8px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.post__meta { margin-top: 10px; padding-bottom: 20px; border-bottom: 2px solid var(--navy); color: var(--muted); font-size: 15px; }
.post__body { margin-top: 28px; }
.post__body .tbl-wrap { margin: 20px 0; }
.post__nav { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- 등장 효과(보이는 상태가 기본, 스크립트가 붙인 뒤에만 숨겼다 보인다) ---------- */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1); }
.rv-on .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn, a, .rchip, .seg__list a { transition-duration: .2s !important; }
  .pcard__in { transform: none !important; }
  .pcard__back { transform: none; opacity: 0; transition: opacity .2s !important; }
  .pcard:hover .pcard__back, .pcard:focus-within .pcard__back, .pcard.is-flipped .pcard__back { opacity: 1; }
  .pcard:nth-child(2n) { transform: none !important; }
}
