/* 경북대학교 세포·기질연구소 천연나노융합사업단(N2C) 홈페이지 — 세포·기질연구소 홈페이지와 같은 디자인 */

/* ---------- 색·크기 토큰 (밝은 화면) ---------- */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;
  --line: #E3E7ED;
  --text: #141A24;
  --body: #3A4250;
  --muted: #5C6573;
  --faint: #98A1AE;
  --accent: #1F5FD1;          /* 로고 파랑 */
  --accent-soft: #EAF1FD;
  --on-accent: #FFFFFF;
  --orange: #F29B1D;          /* 로고 주황 */
  --orange-soft: #FFF3E0;
  --orange-text: #A55F00;
  --brand: #1F5FD1;           /* 로고 배지는 테마와 상관없이 같은 색 */
  --navy: #0A1A33;            /* 첫 화면·푸터 바탕 (두 테마 공통) */
  --navy-2: #0D2547;
  --header-bg: #FFFFFF;
  --logo-tile: transparent;   /* 어두운 화면에서는 로고 뒤에 흰 바탕 */
  --tint: #EEF3FC;            /* 글로컬랩 바탕 */
  --tint-line: #DCE6F7;
  --track: #C9D7F0;           /* 로드맵 선 */
  --glass: rgba(255, 255, 255, .65);
  --popup-shadow: 0 12px 32px rgba(10, 26, 51, .12);
  --shadow: 0 10px 30px rgba(10, 26, 51, .08);
  --good: #1E8E5A;
  --warn: #B26A00;
  --bad: #D93036;
  --bad-soft: #FDECEC;
  --seg: #E8ECF2;
  /* 공지·소식 분류 표시 색 (작은 글씨라 옅은 바탕에서 4.5:1 넘게) */
  --cat-gray: #566070; --cat-amber: #8F5200; --cat-green: #126A42;
  --cat-teal: #086575; --cat-purple: #7346C4; --cat-red: #B5262C;
  --radius: 16px;
  color-scheme: only light;   /* only = 삼성 인터넷이 강제로 어둡게 바꾸지 않게 */
}

/* ---------- 어두운 화면: 기기 설정을 따르고, 버튼으로 바꿀 수 있어요 ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E131D; --surface: #151C29; --surface-2: #111826; --line: #263043;
    --text: #E6EAF2; --body: #C2C9D6; --muted: #8F9AAD; --faint: #5F6B80;
    --accent: #6E9FFF; --accent-soft: #1B2945; --on-accent: #0B1220;
    --orange: #F5A93A; --orange-soft: #3A2A10; --orange-text: #F5B65C;
    --header-bg: #121926; --tint: #111A2B; --tint-line: #23314A; --track: #2B3B57;
    --logo-tile: #FFFFFF;
    --glass: rgba(255, 255, 255, .04); --popup-shadow: 0 12px 32px rgba(0, 0, 0, .5); --shadow: none;
    --good: #4CC98A; --warn: #F2B544; --bad: #FF6B6F; --bad-soft: #3A1A1C; --seg: #1C2433;
    --cat-gray: #8F9AAD; --cat-amber: #F5B65C; --cat-green: #4CC98A; --cat-teal: #4CC3D0; --cat-purple: #B596F5; --cat-red: #FF7A7E;
    color-scheme: only dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E131D; --surface: #151C29; --surface-2: #111826; --line: #263043;
  --text: #E6EAF2; --body: #C2C9D6; --muted: #8F9AAD; --faint: #5F6B80;
  --accent: #6E9FFF; --accent-soft: #1B2945; --on-accent: #0B1220;
  --orange: #F5A93A; --orange-soft: #3A2A10; --orange-text: #F5B65C;
  --header-bg: #121926; --tint: #111A2B; --tint-line: #23314A; --track: #2B3B57;
  --logo-tile: #FFFFFF;
  --glass: rgba(255, 255, 255, .04); --popup-shadow: 0 12px 32px rgba(0, 0, 0, .5); --shadow: none;
  --good: #4CC98A; --warn: #F2B544; --bad: #FF6B6F; --bad-soft: #3A1A1C; --seg: #1C2433;
  --cat-gray: #8F9AAD; --cat-amber: #F5B65C; --cat-green: #4CC98A; --cat-teal: #4CC3D0; --cat-purple: #B596F5; --cat-red: #FF7A7E;
  color-scheme: only dark;
}

/* ---------- 한국어·영어: 고르지 않은 언어는 숨겨요 ---------- */
:root[data-lang="en"] [lang="ko"],
:root:not([data-lang="en"]) [lang="en"] { display: none !important; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html:has(.subnav) { scroll-padding-top: 136px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  display: block; width: auto; height: 40px; box-sizing: content-box;
  margin-left: -6px; padding: 3px 6px; border-radius: 8px; background: var(--logo-tile);
}
.brand-text { line-height: 1.25; }
.brand-text strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { display: block; font-size: 12.5px; color: var(--muted); }

.gnb { margin-left: auto; }
.gnb > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  display: block; padding: 24px 14px;
  font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.gnb > ul > li > a:hover, .gnb > ul > li > a[aria-current] { color: var(--accent); }
.gnb .sub {
  position: absolute; top: 100%; left: 50%;
  min-width: 180px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--popup-shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.gnb li:hover > .sub, .gnb li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.gnb .sub a:hover { background: var(--accent-soft); color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.tool-btn {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em; cursor: pointer;
}
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }
.tool-btn svg { display: block; width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

.menu-btn {
  display: none; width: 40px; height: 40px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 버튼·공통 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 10px;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
  transition: background .15s, filter .15s;
}
.btn.primary { background: #F29B1D; color: #1A1205; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }

.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.tag {
  flex: none; align-self: center;
  font-size: 12.5px; font-weight: 700; line-height: 1.5;
  color: var(--accent); background: var(--accent-soft);
  padding: 2px 9px; border-radius: 6px;
}
.tag.alt { color: var(--orange-text); background: var(--orange-soft); }
.tag.gray { color: var(--cat-gray); background: color-mix(in srgb, var(--cat-gray) 12%, transparent); }
/* 공지·소식 분류는 분류마다 색이 달라요 (목록에 없는 분류는 기본 파랑) */
.tag[data-cat] { color: var(--cat, var(--accent)); background: color-mix(in srgb, var(--cat, var(--accent)) 12%, transparent); }
.tag[data-cat="공지"] { --cat: var(--cat-gray); }
.tag[data-cat="모집"], .tag[data-cat="동정"] { --cat: var(--cat-green); }
.tag[data-cat="채용"] { --cat: var(--cat-teal); }
.tag[data-cat="행사"] { --cat: var(--cat-purple); }
.tag[data-cat="수상"] { --cat: var(--cat-amber); }
.tag[data-cat="규정"] { --cat: var(--cat-red); }
.more { font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.more::after { content: " ›"; }
.more:hover { color: var(--accent); }
.text-link { display: inline-block; margin-top: 24px; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link::after { content: " ›"; }

.section { padding: 88px 0; }
.section.tinted { background: var(--surface-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 32px; }
.section-head h2, .panel-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.section-desc { flex-basis: 100%; margin: 0; color: var(--muted); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 88px 0 104px;   /* 아래 숫자 줄 없이 버튼으로 끝나요 */
  background:
    radial-gradient(1100px 600px at 85% 15%, #17407F 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy) 100%);
}
.hero-art { position: absolute; top: 0; right: 0; width: min(64%, 980px); height: 100%; object-fit: cover; pointer-events: none; }
/* 표지 그림(잎과 나노베지클)은 왼쪽과 아래(숫자 자리)를 남색 바탕에 섞고 조금 어둡게 해서 글씨가 잘 보이게 해요 */
.hero-art {
  object-position: right center; filter: brightness(.8);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(#000 55%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(#000 55%, transparent 92%);
  mask-composite: intersect;
}
.hero-inner { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 14.5px; font-weight: 500; text-decoration: none;
}
.pill b { background: #F29B1D; color: #1A1205; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }
.pill:hover { background: rgba(255, 255, 255, .14); }
.hero h1 { margin: 24px 0 18px; font-size: clamp(32px, 5.2vw, 58px); font-weight: 800; line-height: 1.22; letter-spacing: -.03em; }
:root[data-lang="en"] .hero h1 { max-width: 15em; font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.025em; }
.lead { margin: 0; max-width: 36em; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.7; color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }


/* ---------- 공지·세미나 ---------- */
.board-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; }
.board-grid > * { min-width: 0; }   /* 긴 공지 제목이 칸을 넓히지 않게 (말줄임) */
.panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 2px solid var(--text); }

.post-list, .seminar-list { list-style: none; margin: 0; padding: 0; }
.post-list a { display: flex; align-items: center; gap: 12px; padding: 17px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.post-list a:hover .title { color: var(--accent); }
.badge-new { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #F29B1D; color: #fff; font-size: 10.5px; font-weight: 800; }
.post-list time { flex: none; font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }

.seminar-list li { border-bottom: 1px solid var(--line); }
.seminar-list a { display: flex; align-items: center; gap: 16px; padding: 13px 0; text-decoration: none; }
.seminar-list a:hover strong { color: var(--accent); }
.post-list .empty, .seminar-list .empty { padding: 32px 0; text-align: center; color: var(--muted); }
.news-grid .empty { grid-column: 1 / -1; list-style: none; padding: 32px 0; text-align: center; color: var(--muted); }
.date-tile {
  flex: none; display: flex; flex-direction: column; width: 64px; padding: 6px 0 7px;
  text-align: center; line-height: 1.15;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
}
.date-tile small { font-size: 11px; color: var(--muted); }
.date-tile b { font-size: 22px; font-weight: 800; }
.date-tile span { font-size: 11.5px; color: var(--muted); }
.seminar-list strong { font-weight: 700; }
.seminar-list p { margin: 1px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- 글로컬랩 ---------- */
.glocal { background: var(--tint); }
.glocal-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.glocal h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.3; letter-spacing: -.025em; }
.glocal-desc { margin: 0; font-size: 16.5px; color: var(--body); }
.period { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--text); }

.axis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.axis { display: flex; flex-direction: column; padding: 28px 26px; background: var(--surface); border: 1px solid var(--tint-line); border-radius: var(--radius); }
.axis-no { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--orange); }
.axis h3 { margin: 8px 0 10px; font-size: 20px; letter-spacing: -.015em; }
.axis p { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.axis .lead-pi { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 40px 0 0; padding: 0; }
.roadmap li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 22px 24px 0 0; border-top: 3px solid var(--track); }
.roadmap li::before {
  content: ""; position: absolute; top: -8px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--tint); border: 3px solid var(--track);
}
.roadmap li.now { border-top-color: var(--accent); }
.roadmap li.now::before { background: var(--accent); border-color: var(--accent); }
.roadmap b { font-size: 16.5px; }
.roadmap li.now b::after { content: "진행 중"; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; vertical-align: 2px; }
:root[data-lang="en"] .roadmap li.now b::after { content: "In progress"; }
.roadmap time { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.roadmap li > span { font-size: 14.5px; color: var(--muted); }

.strategy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0 0 20px; padding: 0; }
.strategy li {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px;
  padding: 14px 18px; border-radius: 14px; background: var(--glass);
  font-size: 16px; font-weight: 700; line-height: 1.35;
}
.strategy b {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 22px; font-weight: 800;
}
.strategy small { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.strategy p { grid-column: 2; margin: 2px 0 0; font-size: 13.5px; font-weight: 500; color: var(--muted); }

.partners {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 40px;
  margin: 36px 0 0; padding: 18px 24px;
  background: var(--surface); border: 1px solid var(--tint-line); border-radius: 14px;
}
.partners div { display: flex; align-items: baseline; gap: 12px; }
.partners dt { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.partners dd { margin: 0; font-weight: 600; }

/* ---------- 프로그램 ---------- */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.program { padding: 24px 22px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.who, .block-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.who::before, .block-title::before { content: ""; flex: none; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.program ul { list-style: none; margin: 0; padding: 0; }
.program li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px dashed var(--line); }
.program li b { font-size: 15.5px; font-weight: 600; }
.program li > span { font-size: 13.5px; color: var(--muted); }
.program-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.program-extra a { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: 14px; background: var(--surface-2); text-decoration: none; }
.program-extra a::after { content: "›"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--faint); }
.program-extra b { flex: none; }
.program-extra a > span { font-size: 14px; color: var(--muted); }
.program-extra a:hover { background: var(--accent-soft); }

/* ---------- 연구 지원·학술행사 ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.photo { position: relative; align-self: stretch; margin: 0; overflow: hidden; border-radius: var(--radius); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(10, 26, 51, .75));
  color: #fff; font-size: 14px; font-weight: 600;
}

/* ---------- 연구소 소식 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card {
  display: flex; flex-direction: column; gap: 14px; min-height: 210px; padding: 24px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s;
  overflow: hidden;
}
/* 카드 위쪽 사진 (사진이 없으면 로고) */
.news-thumb { display: block; min-height: 0; overflow: hidden; margin: -24px -22px 0; aspect-ratio: 3 / 2; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.news-thumb .logo { object-fit: contain; padding: 18% 26%; opacity: .55; }
.news-card .tag { align-self: flex-start; }
.news-card h3 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.news-card time { font-size: 13.5px; color: var(--faint); }
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- 연구소 소개 ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.greeting h2 { margin: 0 0 22px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.3; letter-spacing: -.025em; }
.greeting p { margin: 0 0 14px; font-size: 16.5px; color: var(--body); }
.greeting .sign-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: 24px; }
.greeting .sign { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.greeting .sign-row .text-link { margin-top: 0; }
.sign > span, .sign small { font-size: 14px; font-weight: 500; color: var(--muted); }
.sign > span { margin-right: 6px; }
.sign small { margin-left: 6px; }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-links a { display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s, background .15s; }
.quick-links b { font-size: 16.5px; }
.quick-links a > span { font-size: 13.5px; color: var(--muted); }
.quick-links a:hover { border-color: var(--accent); background: var(--accent-soft); }

.eras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 64px 0 0; padding: 0; }
.eras > li { padding: 26px 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.era-name { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.era-name time { margin-left: 6px; font-weight: 600; color: var(--muted); }
.eras h3 { margin: 8px 0 14px; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.eras h3 small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.eras ul, .dots { list-style: none; margin: 0; padding: 0; }
.eras ul li, .dots li { position: relative; padding: 4px 0 4px 14px; font-size: 14.5px; color: var(--body); }
.eras ul li::before, .dots li::before { content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.eras > li.now { background: var(--navy); border-color: var(--navy); color: #fff; }
.eras > li.now .era-name { color: #F29B1D; }
.eras > li.now .era-name time, .eras > li.now h3 small { color: rgba(255, 255, 255, .55); }
.eras > li.now ul li { color: rgba(255, 255, 255, .82); }
.eras > li.now ul li::before { background: #F29B1D; }

/* ---------- 푸터 ---------- */
.site-footer { padding: 48px 0 28px; background: var(--navy); color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 32px; }
.footer-name { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.family { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 0; list-style: none; margin: 0; padding: 0; }
.family li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.family a { display: block; padding: 2px 22px; opacity: .8; transition: opacity .15s; }
.family li:first-child a { padding-left: 0; }
.family a:hover { opacity: 1; }
.family img { display: block; width: auto; }
.copyright { position: relative; margin-top: 32px; padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .45); }
.copyright::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- 게시판·하위 페이지 머리 ---------- */
.page-head { padding: 56px 0 0; color: #fff; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.page-head.plain { padding-bottom: 52px; }
.page-head .eyebrow { color: #F29B1D; }
.page-head h1 { margin: 0 0 28px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.025em; }
.page-head.plain h1 { margin-bottom: 12px; }
.page-head .desc { max-width: 40em; margin: 0; color: rgba(255, 255, 255, .75); font-size: 17px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; }
/* 게시판 탭도 본문 너비를 같은 칸으로 나눠요 (좁은 화면에서는 옆으로 밀어요) */
.tabs a { flex: 1 0 0; min-width: max-content; text-align: center; padding: 12px 20px; border-radius: 10px 10px 0 0; color: rgba(255, 255, 255, .72); font-weight: 600; text-decoration: none; }
.tabs a:hover { color: #fff; }
.tabs a.on { background: var(--bg); color: var(--text); }

/* 하위 페이지 안 메뉴: 스크롤하면 위에 붙어요 */
.subnav { position: sticky; top: 72px; z-index: 40; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
/* 본문 너비 안에서 같은 너비로 나눠요. 다 안 들어가는 좁은 화면에서는 옆으로 밀어요 */
.subnav a {
  flex: 1 0 0; min-width: max-content; text-align: center;
  padding: 15px 14px 13px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.subnav a:hover { color: var(--text); }
.subnav a.on { color: var(--accent); border-bottom-color: var(--accent); }

.board { min-height: 40vh; padding-top: 40px; padding-bottom: 88px; }
.board .post-list, .board .seminar-list { border-top: 2px solid var(--text); }
.board .seminar-list p { margin: 0; }
.post-list .pinned a { background: var(--surface-2); padding-inline: 12px; }
.tag.pin { color: #fff; background: var(--navy); }
:root[data-theme="dark"] .tag.pin { background: var(--accent-soft); color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.pin { background: var(--accent-soft); color: var(--accent); } }
.back-btn {
  display: flex; align-items: center; justify-content: center; width: fit-content; height: 44px; margin: 28px auto 0; padding: 0 28px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font: inherit; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer;
}
.back-btn:hover { border-color: var(--accent); color: var(--accent); }
/* 게시판 쪽 번호: 전체 개수 · 쪽 번호 · 한 쪽에 몇 개 */
.page-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 36px; font-size: 14.5px; }
.page-count { color: var(--muted); }
.page-size { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.page-size select { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.page-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-nav a, .page-nav span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-weight: 600; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums;
}
.page-nav a:hover { border-color: var(--accent); color: var(--accent); }
.page-nav .on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.page-nav .off { opacity: .4; }
.page-nav .gap { min-width: 0; padding: 0 2px; border: 0; background: none; color: var(--faint); }
.msg { padding: 56px 0; text-align: center; color: var(--muted); }

.article { max-width: 820px; margin: 0 auto; padding: 48px 0 88px; }
.article-cat { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14.5px; font-weight: 600; }
.article-cat a { color: var(--accent); text-decoration: none; }
.article h1 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); line-height: 1.35; letter-spacing: -.02em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 32px; padding-bottom: 20px; border-bottom: 2px solid var(--text); font-size: 15px; }
.article-meta div { display: flex; gap: 8px; }
.article-meta dt { color: var(--muted); }
.article-meta dd { margin: 0; font-weight: 600; }
.article-photos { display: grid; justify-items: start; gap: 12px; margin: 0 0 28px; }
.article-photos img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.article-body p { margin: 0 0 1.1em; font-size: 16.5px; line-height: 1.85; color: var(--body); }
.article-body a { color: var(--accent); word-break: break-all; }
.attach { list-style: none; margin: 32px 0 0; padding: 18px 22px; border-radius: 12px; background: var(--surface-2); }
.attach li + li { margin-top: 8px; }
.attach a { color: var(--accent); font-weight: 600; text-decoration: none; word-break: break-all; }
.attach a::after { content: " ↗"; }

/* ---------- 하위 페이지 내용 ---------- */
.sub-section { padding: 80px 0; }
.sub-section + .sub-section { border-top: 1px solid var(--line); }
.sub-section.tinted { background: var(--surface-2); }
.sub-head { margin-bottom: 32px; }
.sub-head h2 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.sub-head p { max-width: 46em; margin: 10px 0 0; color: var(--muted); font-size: 16.5px; }
.block-title { margin: 48px 0 16px; }
.sub-head + .block-title { margin-top: 0; }
.prose p { max-width: 46em; margin: 0 0 16px; font-size: 16.5px; line-height: 1.85; color: var(--body); }

.cols-2, .cols-3, .cols-4 { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.box { padding: 26px 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sub-section.tinted .box { border-color: transparent; }
.box h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.015em; }
.box > p { margin: 0 0 12px; color: var(--body); font-size: 15.5px; }
.box .kicker { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--orange-text); }
.box .meta { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.box .meta b { color: var(--text); }

.facts { display: grid; gap: 0; margin: 14px 0 0; }
.facts div { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
:root[data-lang="en"] .facts div { grid-template-columns: 6.5em 1fr; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

.n2c-logo { display: block; width: min(440px, 100%); height: auto; margin: 0 0 32px; }
/* 어두운 화면에서는 흰 바탕 위에 */
:root[data-theme="dark"] .n2c-logo { box-sizing: content-box; max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 12px; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .n2c-logo { box-sizing: content-box; max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 12px; background: #fff; } }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 32px; padding: 0; }
.figures div { padding: 20px 22px; border-radius: 14px; background: var(--surface-2); }
.sub-section.tinted .figures div { background: var(--surface); }
.figures dt { font-size: 13.5px; color: var(--muted); }
.figures dd { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.figures dd small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); font-size: 14.5px; font-weight: 500; }
.sub-section.tinted .chips li, .box .chips li { background: var(--accent-soft); color: var(--accent); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.data-table thead th { border-top: 0; background: var(--surface-2); font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.data-table tbody th { font-weight: 600; white-space: nowrap; }
.data-table .when { width: 9em; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.person { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.avatar { display: block; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); }
.person strong { display: block; font-size: 20px; }
.person p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }

.faculty { margin-top: 48px; }
.faculty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0 0 40px; padding: 0; }
.faculty-grid:last-child { margin-bottom: 0; }
.faculty-card { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: 14px; background: var(--surface); }
.faculty-card strong { font-size: 16.5px; }
.faculty-card small { font-size: 13.5px; color: var(--muted); }
.faculty-card p { margin: 3px 0 0; font-size: 14px; }
.faculty-card .research { color: var(--muted); }
.faculty-card a { display: inline-block; margin-top: 4px; font-size: 13.5px; color: var(--accent); word-break: break-all; }
.faculty-photo { display: grid; place-items: center; width: 60px; height: 80px; overflow: hidden; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 800; }
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }

.org { display: grid; justify-items: center; gap: 0; }
.org-top { padding: 14px 32px; border-radius: 14px; background: var(--navy); color: #fff; text-align: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.org-top small { display: block; font-size: 13px; color: #F29B1D; font-weight: 700; }
.org-top strong { font-size: 18px; }
.org-line { width: 2px; height: 28px; background: var(--line); }
.org .cols-3, .org .cols-4 { width: 100%; }
.org .box h3 { font-size: 17px; }

.note { margin: 20px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 14.5px; }
.contact-list { display: grid; gap: 0; margin: 0; }
.contact-list div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { color: var(--accent); }
.live-list { margin-top: 8px; }
.live-list .post-list { border-top: 2px solid var(--text); }

/* ---------- 공모·신청 ---------- */
.box .text-link { margin-top: 12px; }
.apply { max-width: 820px; }
.apply-box { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.apply-box + .apply-box { margin-top: 20px; }
.apply-box h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.015em; }
.apply-box .msg { margin: 0; color: var(--muted); }
.apply-form .hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.apply-form h2 + .hint { margin-bottom: 20px; }
.apply-form .field-group { margin: 28px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.apply-form .field-group > legend { float: left; width: 100%; margin: 0 0 16px; padding: 0; font-size: 16px; font-weight: 800; }
.apply-form .field-group > legend + * { clear: both; }
.apply-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; font-size: 14.5px; font-weight: 600; }
.apply-form .field legend { margin-bottom: 8px; padding: 0; }
.apply-form .field small { font-size: 13px; font-weight: 400; color: var(--muted); }
.apply-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .apply-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 15.5px; font-weight: 400;
}
.apply-form textarea { resize: vertical; line-height: 1.6; }
.apply-form input:focus, .apply-form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.apply-form input[type="file"] { max-width: 100%; font: inherit; font-size: 14.5px; }
.apply-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.apply-form .check { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 16px; font-size: 14.5px; cursor: pointer; }
.apply-form .check input { flex: none; margin-top: 4px; }
.apply-form .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.apply-form .btn:disabled { opacity: .6; cursor: default; }
.choice-group + .choice-group { margin-top: 14px; }
.choice-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 500; }
.choices label { position: relative; display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14.5px; cursor: pointer; }
.choices input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.choices label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.apply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-msg { margin: 0; font-size: 14.5px; color: var(--muted); }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--good); }
.form-msg.bad { color: var(--bad); }
.apply-form .form-msg { margin-top: 12px; }
.apply-actions .form-msg { margin-top: 0; }

/* ---------- 연구 › 단계별 로드맵 ---------- */
.rmap { --when-h: 50px; --dot: 40px; --dot-gap: 12px; }
.rmap [data-track="drug"] { --t: var(--accent); }
.rmap [data-track="eng"] { --t: var(--cat-teal); }
.rmap [data-track="dx"] { --t: var(--cat-purple); }
.rmap [data-track="hum"] { --t: var(--cat-amber); }
.rmap-tracks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; font-size: 14px; color: var(--muted); }
.rmap-tracks > span { margin-right: 4px; font-weight: 600; }
.rmap-tracks button {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--body); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.rmap-tracks button i { width: 9px; height: 9px; border-radius: 50%; background: var(--t); }
.rmap-tracks button:hover, .rmap-tracks button.on { border-color: var(--t); color: var(--t); }
.rmap-tracks button[aria-pressed="true"] { background: var(--t); border-color: var(--t); color: var(--on-accent); }
.rmap-tracks button[aria-pressed="true"] i { background: var(--on-accent); }

.rmap-phases { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
/* 기간 전체를 띠 하나로: 진한 파랑에서 옅게 */
.rmap-phases::before {
  content: ""; position: absolute; left: calc(var(--dot) / 2); right: 0; top: calc(var(--when-h) + var(--dot-gap) + var(--dot) / 2 - 3px); height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 22%, var(--surface)));
}
.rmap-phase { position: relative; padding-right: 28px; transition: opacity .2s; }
.rmap-when { display: flex; flex-direction: column; justify-content: flex-end; height: var(--when-h); margin: 0; line-height: 1.2; }
.rmap-when small { font-size: 13px; font-weight: 700; color: var(--muted); }
.rmap-when b { font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.rmap-phase.now .rmap-when small::after { content: "진행 중"; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; }
:root[data-lang="en"] .rmap-phase.now .rmap-when small::after { content: "In progress"; }
.rmap-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: var(--dot); height: var(--dot); margin: var(--dot-gap) 0 0;
  border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 15px; font-weight: 800;
  transition: transform .2s;
}
.rmap-phase.now .rmap-dot { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.rmap-phase.hot .rmap-dot { transform: scale(1.12); }
.rmap-goal { position: relative; margin: 0 0 14px; padding-top: 26px; font-size: 17.5px; line-height: 1.4; letter-spacing: -.015em; }
.rmap-goal::before { content: ""; position: absolute; left: calc(var(--dot) / 2); top: 4px; width: 1px; height: 16px; background: var(--line); }
.rmap-items { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rmap-items li {
  display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-radius: 10px;
  font-size: 14.5px; cursor: default; transition: opacity .15s, background .15s;
}
:root[data-lang="en"] .rmap-items li { grid-template-columns: 7.6em minmax(0, 1fr); }
.rmap-k { display: inline-flex; align-items: baseline; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rmap-k::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--t); transform: translateY(-1px); }
.rmap-v { color: var(--body); }
.rmap-items li:hover, .rmap-items li.on { background: color-mix(in srgb, var(--text) 6%, transparent); }
.rmap-items li.on .rmap-k { color: var(--t); }
.rmap-items li.on .rmap-v { color: var(--text); font-weight: 600; }
.rmap[data-track] .rmap-items li:not(.on) { opacity: .35; }
.rmap.phase-hot:not([data-track]) .rmap-phase:not(.hot) { opacity: .45; }

/* 논문 이름 링크 (DOI·학술지 페이지) */
a.paper { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a.paper::after { content: " ↗"; font-weight: 400; opacity: .6; }
a.paper:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- 참여 기관 지도 (사업단 소개) ---------- */
.pmap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 28px; align-items: start; }
.pmap > .pmap-list { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
/* 지도 밑에는 협력 기업 권역이 오고, 오른쪽 목록은 묶음 사이를 벌려 아래 끝을 맞춰요 */
.pmap-fig { margin: 0; }
.pmap-us { margin-top: 48px; }
.pmap-canvas { position: relative; overflow: hidden; border: 1px solid var(--tint-line); border-radius: var(--radius); background: var(--surface); }
.pmap-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.pmap-svg .gu { fill: var(--surface-2); stroke: var(--track); stroke-width: 1.2; stroke-linejoin: round; transition: fill .15s; }
.pmap-svg .gu.on { fill: var(--accent-soft); }
.pmap-svg .gu-lab { fill: var(--faint); font-size: 15.5px; font-weight: 600; text-anchor: middle; pointer-events: none; }
.pmap-svg .gu-lab.big { font-size: 16.5px; letter-spacing: .06em; }
.pmap-svg .land-out { fill: var(--surface-2); opacity: .45; stroke: var(--track); stroke-width: 1; stroke-linejoin: round; }
.pmap-svg .link { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 5; opacity: .3; transition: opacity .15s; }
.pmap-svg .scale path { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.pmap-svg .scale text { fill: var(--muted); font-size: 14px; text-anchor: middle; }
.pmap-svg .pin, .pmap-svg .zone { cursor: pointer; outline: none; transition: opacity .15s; }
.pmap-svg .pin-b { transition: transform .15s; }
.pmap-svg .pin-b circle { stroke: var(--surface); stroke-width: 2.5; }
.pmap-svg .hosp .pin-b circle { fill: var(--cat-red); }
.pmap-svg .inst .pin-b circle { fill: var(--cat-purple); }
.pmap-svg .hub .pin-b circle { fill: var(--accent); stroke-width: 3.5; }
.pmap-svg .hub .pin-b .halo { fill: var(--accent); fill-opacity: .2; stroke: none; }
.pmap-svg .hub .pin-b .dot { fill: var(--surface); stroke: none; }
.pmap-svg .zone-area { fill: var(--orange); fill-opacity: .13; stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 4 4; }
.pmap-svg .badge circle { fill: var(--orange); }
.pmap-svg .badge text { fill: #0A1A33; font-size: 14px; font-weight: 800; text-anchor: middle; }
.pmap-svg .pin-lab, .pmap-svg .zone-lab {
  fill: var(--text); font-size: 16.5px; font-weight: 600; pointer-events: none;
  paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round;
}
.pmap-svg .hub .pin-lab { fill: var(--accent); font-size: 21px; font-weight: 800; }
.pmap-svg .zone-lab { fill: var(--orange-text); font-size: 15px; }
.pmap-svg.hot .pin, .pmap-svg.hot .zone { opacity: .3; }
.pmap-svg.hot .link { opacity: .08; }
.pmap-svg.hot .pin.on, .pmap-svg.hot .zone.on { opacity: 1; }
.pmap-svg.hot .link.on { opacity: .9; stroke-dasharray: none; }
.pmap-svg .on .pin-b { transform: scale(1.3); }
.pmap-svg :focus-visible .zone-area, .pmap-svg .pin:focus-visible .pin-b circle:not(.halo):not(.dot) { stroke: var(--text); }

.pmap-card {
  position: absolute; z-index: 2; width: max-content; max-width: min(300px, calc(100% - 16px));
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: var(--popup-shadow); pointer-events: none;
}
.pmap-card > div + div { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.pmap-card b { display: block; font-size: 14.5px; color: var(--text); }
.pmap-card small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }

.pmap-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.pmap-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.pmap-legend .mk { margin: 0; }
.pmap-legend .pmap-note { color: var(--faint); }

.pm-head { margin: 22px 0 6px; padding-left: 12px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--orange-text); }
.pm-items { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pm-items li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-radius: 10px; outline: none; transition: background .15s; }
.pm-items li[data-site] { cursor: pointer; }
.pm-items li[data-site]:hover, .pm-items li[data-site]:focus-visible, .pm-items li.on, .pm-hub li { background: var(--surface); }
.pm-items li:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.pm-items b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.pm-items small { display: block; margin-top: 1px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mk { display: inline-block; flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--faint); }
.mk.hub { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mk.hosp { background: var(--cat-red); }
.mk.inst { background: var(--cat-purple); }
.mk.zone { border: 1.5px dashed var(--orange); background: var(--orange-soft); }
.mk.city { border: 1.5px solid var(--track); border-radius: 3px; background: var(--surface-2); }
.mk.out { border: 1.5px solid var(--faint); background: transparent; }

.pmap-zones .pm-head { margin-top: 4px; }
.pm-zones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pm-zones li { background: var(--surface); box-shadow: inset 0 0 0 1px var(--tint-line); }
.pm-zones li:hover, .pm-zones li.on { box-shadow: inset 0 0 0 1px var(--orange); }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .program-grid, .news-grid, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .program-extra a { flex-wrap: wrap; row-gap: 2px; }
  .program-extra b { flex: 1 1 0; min-width: 0; }
  .program-extra a > span { order: 3; flex-basis: 100%; }
  .program-extra a::after { order: 2; }
  .gnb > ul > li > a { padding-inline: 10px; font-size: 15px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .header-inner { height: 64px; }
  .header-tools { margin-left: auto; }
  .menu-btn { display: flex; }
  .gnb { display: none; position: fixed; inset: 64px 0 0; overflow: auto; margin: 0; padding: 8px 20px 40px; background: var(--bg); }
  .gnb.open { display: block; }
  body.menu-open { overflow: hidden; }
  .gnb > ul { flex-direction: column; }
  .gnb > ul > li { border-bottom: 1px solid var(--line); }
  .gnb > ul > li > a { padding: 16px 2px; font-size: 17px; }
  .gnb .sub, .gnb li:hover > .sub, .gnb li:focus-within > .sub {
    position: static; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0;
    padding: 0 0 14px; border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .gnb .sub a { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
  .subnav { top: 64px; }
  html:has(.subnav) { scroll-padding-top: 124px; }

  .board-grid, .about-grid, .glocal-head { grid-template-columns: 1fr; }
  .about-grid { gap: 40px; }
  .axis-grid, .cols-3 { grid-template-columns: 1fr; gap: 12px; }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: 1fr; }
  .pmap { grid-template-columns: 1fr; }
  .pmap > .pmap-list { grid-column: auto; grid-row: auto; }
  .pm-items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .pm-zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-grid, .eras { grid-template-columns: 1fr; }
  .eras { margin-top: 48px; }
}

@media (max-width: 760px) {
  .program-extra, .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li { padding: 0 0 22px 24px; border-top: 0; border-left: 3px solid var(--track); }
  .roadmap li:last-child { padding-bottom: 0; }
  .roadmap li::before { top: 2px; left: -8px; }
  .roadmap li.now { border-left-color: var(--accent); }
  .rmap-tracks { margin-bottom: 28px; }
  .rmap-phases { grid-template-columns: 1fr; gap: 32px; }
  .rmap-phases::before { left: calc(var(--dot) / 2 - 3px); right: auto; top: calc(var(--dot) / 2); bottom: 0; width: 6px; height: auto; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 22%, var(--surface))); }
  .rmap-phase { padding: 0 0 0 calc(var(--dot) + 16px); }
  .rmap-dot { position: absolute; left: 0; top: 2px; margin: 0; }
  .rmap-when { height: auto; }
  .rmap-goal { padding-top: 8px; }
  .rmap-goal::before { display: none; }
  .pm-items { grid-template-columns: 1fr; }
  .pmap-svg .pin-lab, .pmap-svg .zone-lab { display: none; }
  .pmap-svg .pin-b { transform: scale(1.8); }
  .pmap-svg .on .pin-b { transform: scale(2.2); }
  .pmap-svg .hub .pin-b { transform: scale(1.4); }   /* 사업단 점은 이미 커서 덜 키워요 */
  .pmap-svg .hub.on .pin-b { transform: scale(1.6); }
  .pmap-svg .gu-lab, .pmap-svg .scale text { font-size: 22px; }
}

@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .copyright::before { left: 16px; right: 16px; }
  .brand { gap: 8px; }
  .brand-logo { height: 34px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text small { font-size: 11.5px; }
  .header-tools { gap: 4px; }
  .tool-btn { min-width: 34px; height: 34px; padding: 0 6px; }
  .section, .sub-section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-art { width: 100%; opacity: .5; }
  .program-grid { grid-template-columns: 1fr; }
  /* 휴대폰: 소식 카드는 한 줄로 두고 옆으로 밀어 봐요 */
  .news-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px;
  }
  .news-card { min-height: 0; scroll-snap-align: start; }
  .post-list a { flex-wrap: wrap; row-gap: 6px; }
  .post-list .title { order: 3; flex-basis: 100%; white-space: normal; }
  .page-nav { order: 3; flex-basis: 100%; gap: 4px; }
  .page-nav a, .page-nav span { min-width: 32px; height: 36px; padding: 0 6px; }
  .post-list time { margin-left: auto; }
  .strategy { grid-template-columns: 1fr; }
  .strategy li { padding: 12px 14px; column-gap: 10px; font-size: 15px; }
  .strategy b { width: 38px; height: 38px; font-size: 19px; }
  .partners { padding: 16px 18px; }
  .partners div { flex-direction: column; gap: 0; }
  .figures dd { font-size: 22px; }
  .person { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: 0; }
  .apply-box { padding: 22px 18px; }
  .apply-form .grid-2 { grid-template-columns: 1fr; }
  .family { gap: 18px 28px; }
  .family li + li { border-left: 0; }
  .family a { padding: 0; }
}
