/* ==========================================================================
   KAIST 연구안보센터: 공통 스타일
   - 색상, 폰트, 간격은 아래 :root 변수에서 한 번에 조정할 수 있습니다.
   ========================================================================== */

:root {
  /* 색상 */
  --blue: #004191;          /* KAIST Blue (주 색상) */
  --blue-dark: #002f6c;
  --blue-mid: #2a62b8;
  --blue-light: #e9f0fa;
  --navy: #0b1b33;          /* 푸터, 상단바 */
  --ink: #191f28;           /* 본문 글자 */
  --ink-2: #4b5563;
  --ink-3: #7b8694;
  --line: #dfe3e8;
  --line-2: #eef1f4;
  --bg: #ffffff;
  --bg-2: #f5f7fa;

  /* 레이아웃 */
  --container: 1200px;
  --gutter: 20px;
  --radius: 4px;
  --header-h: 84px;
  --topbar-h: 36px;

  /* 글꼴 */
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   기본
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; }
strong, b { font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only {
  position: absolute; 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: 0; top: -60px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 10px 16px; font-weight: 400;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   버튼
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border: 1px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 400;
  line-height: 1.2; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.btn-outline { background: transparent; color: var(--blue); }
.btn.btn-outline:hover { background: var(--blue-light); color: var(--blue); }
.btn.btn-white { background: #fff; border-color: #fff; color: var(--blue); }
.btn.btn-white:hover { background: #e9f0fa; border-color: #e9f0fa; color: var(--blue-dark); }
.btn.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* 페이지 틀: 내용이 짧아도 푸터가 화면 맨 아래에 붙도록 */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }
#site-footer { flex-shrink: 0; }
/* 헤더 감싸개는 상자를 만들지 않음 (헤더가 스크롤 중에도 상단에 고정되도록) */
#site-header { display: contents; }

/* --------------------------------------------------------------------------
   상단 유틸리티 바 + 헤더
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.8); font-size: 13px;
  height: var(--topbar-h);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar ul { display: flex; gap: 22px; list-style: none; }
.topbar a:hover { color: #fff; }
.topbar .topbar-org { font-weight: 400; letter-spacing: .02em; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  height: var(--header-h);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 16px rgba(10, 30, 70, .08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { display: block; height: 30px; width: auto; }
.brand-mark {
  font-weight: 700; font-size: 27px; letter-spacing: .04em; color: var(--blue);
  line-height: 1; font-family: "Noto Sans KR", Arial, sans-serif;
}
.brand-sep { width: 1px; height: 28px; background: var(--line); }
.brand-name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.brand-name strong, .brand-name span { display: block; width: max-content; white-space: nowrap; }
.brand-name strong { font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.brand-name span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; margin-top: 2px; }

.nav ul { display: flex; gap: 6px; list-style: none; }
.nav a {
  position: relative; display: block; padding: 10px 18px; font-size: 17px; font-weight: 400; color: var(--ink);
}
.nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--blue); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; margin-right: -8px;
}
.nav-toggle span {
  position: relative; display: block; width: 22px; height: 2px; background: var(--ink);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, top .2s;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .brand-mark { font-size: 22px; }
  .brand-sep { height: 22px; }
  .brand-name strong { font-size: 16px; }
  .brand-name span { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(10,30,70,.08);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav a { padding: 14px var(--gutter); border-bottom: 1px solid var(--line-2); font-size: 16px; }
  .nav a::after { display: none; }
  .nav li:last-child a { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   히어로 (홈)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; background: var(--blue-dark); color: #fff; overflow: hidden;
  background-image: linear-gradient(100deg, #002a63 0%, #004191 60%, #0a4ea8 100%);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; /* 사진 가운데(한반도)를 기준으로 맞춤 */
}
/* 사진 위 남색 그라데이션: 왼쪽(글자 쪽)은 진하게, 오른쪽은 사진이 보이게 */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,34,82,.92) 0%, rgba(0,44,102,.72) 36%, rgba(0,58,130,.22) 52%, rgba(0,58,130,.30) 100%);
}
@media (max-width: 900px) {
  .hero-bg { background-position: 50% 50%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(0,34,82,.80) 0%, rgba(0,40,95,.88) 100%); }
}
.hero-pattern { position: absolute; inset: 0; pointer-events: none; }
.hero .container {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
  min-height: 560px; padding-top: 72px; padding-bottom: 72px;
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-bottom: 20px; font-weight: 400;
}
.hero h1 { font-size: 44px; line-height: 1.28; font-weight: 500; margin-bottom: 22px; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: #cfe0ff; }
.hero-lead { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.latest-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(0, 20, 60, .28); overflow: hidden;
}
.latest-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.latest-card-head .label { font-weight: 500; color: var(--blue); letter-spacing: .06em; }
.latest-card-head .date { color: var(--ink-3); }
.latest-card-body { padding: 26px 24px 24px; }
.latest-card .type { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.latest-card h2 { font-size: 24px; margin-bottom: 12px; }
.latest-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 18px; }
.latest-card .tags { margin-bottom: 20px; }
.latest-card-foot { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   공통 섹션
   -------------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 36px;
}
.section-title { font-size: 32px; letter-spacing: -0.03em; }
.section-title small {
  display: block; font-size: 13px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.section-desc { color: var(--ink-2); font-size: 16px; max-width: 720px; margin-top: 12px; }
.more-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 400; color: var(--ink-2);
  white-space: nowrap; padding-bottom: 6px;
}
.more-link:hover { color: var(--blue); }
.more-link svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
}

/* 태그 */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 2px;
  background: var(--blue-light); color: var(--blue); font-weight: 400;
}

/* --------------------------------------------------------------------------
   게시물 카드 (목록, 홈)
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.post-card:hover { border-color: var(--blue-mid); box-shadow: 0 10px 28px rgba(0, 40, 100, .10); transform: translateY(-2px); }
.post-card:hover h3 { color: var(--blue); }
.post-cover {
  position: relative; aspect-ratio: 16 / 9; background: var(--blue); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px;
  background-image: linear-gradient(120deg, #003070 0%, #004191 55%, #1255b5 100%);
}
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cover .cover-type { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.post-cover .cover-issue { font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; transition: color .15s; }
.post-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; flex: 1; }
.post-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }
.post-card .meta .pdf { color: var(--blue); font-weight: 400; }

.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.post-grid.cols-1 { grid-template-columns: 1fr; }
.post-grid.cols-1 .post-card { flex-direction: row; }
.post-grid.cols-1 .post-cover { flex: 0 0 38%; aspect-ratio: auto; min-height: 280px; padding: 28px 32px; }
.post-grid.cols-1 .post-cover .cover-issue { font-size: 32px; }
.post-grid.cols-1 .post-card-body { padding: 32px 36px; }
.post-grid.cols-1 .post-card h3 { font-size: 23px; }
.post-grid.cols-1 .post-card p { font-size: 15.5px; max-width: 640px; }
@media (max-width: 900px) { .post-grid, .post-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .post-grid, .post-grid.cols-2 { grid-template-columns: 1fr; }
  .post-grid.cols-1 .post-card { flex-direction: column; }
  .post-grid.cols-1 .post-cover { flex: none; aspect-ratio: 16 / 9; min-height: 0; padding: 22px 24px; }
  .post-grid.cols-1 .post-cover .cover-issue { font-size: 26px; }
  .post-grid.cols-1 .post-card-body { padding: 22px 24px 24px; }
}

/* 목록 페이지: 행(row)형 목록 */
.post-list { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.post-row {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 32px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.post-row .post-cover { aspect-ratio: 4 / 3; border-radius: var(--radius); padding: 18px 20px; }
.post-row .post-cover .cover-issue { font-size: 22px; }
.post-row h3 { font-size: 22px; margin-bottom: 10px; }
.post-row h3 a:hover { color: var(--blue); }
.post-row .row-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; }
.post-row .row-meta strong { color: var(--ink-2); font-weight: 400; }
.post-row p { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 14px; }
.post-row .highlights { list-style: none; margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); }
.post-row .highlights li { position: relative; padding-left: 14px; margin-bottom: 4px; }
.post-row .highlights li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; background: var(--blue); }
.post-row .row-actions { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.post-year { font-size: 22px; font-weight: 500; margin: 48px 0 16px; color: var(--ink); }
.post-year:first-child { margin-top: 0; }
.empty-state { padding: 60px 0; text-align: center; color: var(--ink-3); border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .post-row { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .post-row .post-cover { max-width: 320px; }
  .post-row .row-actions { flex-direction: row; }
}

/* --------------------------------------------------------------------------
   해외 협력 대학 카드 (홈, 센터 소개): 누르면 연구성과 페이지의 해당 탭으로
   -------------------------------------------------------------------------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 22px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.partner-card:hover { border-color: var(--blue-mid); box-shadow: 0 10px 28px rgba(0, 40, 100, .10); transform: translateY(-2px); color: inherit; }
.partner-card:hover h3 { color: var(--blue); }
.partner-region { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.partner-card h3 { font-size: 20px; line-height: 1.3; transition: color .15s; }
.partner-card .partner-ko { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.partner-card .partner-role { font-size: 14.5px; color: var(--ink-2); margin: 14px 0 0; flex: 1; }
.partner-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 14px;
  border-top: 1px solid var(--line-2); font-size: 13.5px; font-weight: 400; color: var(--blue);
}
.partner-foot svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: 1fr; gap: 14px; } .partner-card { padding: 22px 22px 18px; } }

/* --------------------------------------------------------------------------
   연구성과 게시판 (research.html): 상단 탭 + 대학 소개 + 목록
   -------------------------------------------------------------------------- */
.tabs { display: flex; margin-bottom: 36px; }
.tab:last-child { margin-right: 0; }
.tab {
  flex: 1 1 0; min-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line); margin-right: -1px;
  cursor: pointer; color: var(--ink-2); position: relative; transition: background .15s, color .15s;
}
.tab strong { font-size: 16px; font-weight: 500; white-space: nowrap; }
.tab span { font-size: 12.5px; color: var(--ink-3); }
.tab:hover { color: var(--blue); }
.tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; z-index: 1; }
.tab.is-active span { color: rgba(255,255,255,.75); }
.partner-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 28px 32px; background: var(--bg-2); border-radius: var(--radius); margin-bottom: 36px;
}
.partner-head h2 { font-size: 26px; margin: 4px 0 12px; }
.partner-head h2 .partner-ko { font-size: 15px; font-weight: 400; color: var(--ink-2); margin-left: 8px; }
.partner-head p { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin: 0; max-width: 760px; }
.partner-head .btn { white-space: nowrap; }
@media (max-width: 700px) {
  /* 좁은 화면: 탭을 세로로 쌓아 기관명이 겹치지 않게 */
  .tabs { flex-direction: column; gap: 6px; border-bottom: 0; margin-bottom: 24px; overflow: visible; }
  .tab {
    flex: none; min-width: 0; top: 0; margin: 0; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px;
    padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-align: left;
  }
  .tab strong { font-size: 15px; white-space: normal; }
  .tab span { flex-shrink: 0; }
  .partner-head { flex-direction: column; padding: 22px; }
  .partner-head h2 { font-size: 22px; }
  .partner-head h2 .partner-ko { display: block; margin: 4px 0 0; }
}

/* 표지 없는 간단 목록 (연구성과 등) */
.list { border-top: 2px solid var(--ink); }
.list .empty-state { border-bottom: 1px solid var(--line); }
.list-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.list-date { font-size: 14px; color: var(--ink-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
.list-body h3 { font-size: 19px; margin-bottom: 6px; }
.list-body h3 a:hover { color: var(--blue); }
.list-meta { font-size: 13.5px; color: var(--ink-3); margin-bottom: 8px; }
.list-body p { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 10px; }
.list-actions { display: flex; flex-direction: column; gap: 8px; min-width: 120px; }
@media (max-width: 800px) {
  .list-row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .list-actions { flex-direction: row; flex-wrap: wrap; }
}

/* 연락 띠 (홈 하단) */
.contact-strip { background: var(--blue); color: #fff; }
.contact-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
.contact-strip h2 { font-size: 24px; margin-bottom: 6px; }
.contact-strip p { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; }
@media (max-width: 800px) { .contact-strip .container { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   서브페이지 상단 띠(page head) + 빵부스러기
   -------------------------------------------------------------------------- */
.page-head {
  position: relative; background: var(--blue-dark); color: #fff; overflow: hidden;
  background-image: linear-gradient(100deg, #002a63 0%, #004191 70%, #0a4ea8 100%);
}
.page-head .container { position: relative; padding-top: 64px; padding-bottom: 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.breadcrumb a:hover { color: #fff; }
.page-head h1 { font-size: 38px; letter-spacing: -0.03em; }
.page-head .page-sub { margin: 12px 0 0; font-size: 16px; color: rgba(255,255,255,.8); max-width: 760px; }
.page-body { padding: 64px 0 96px; }
@media (max-width: 900px) {
  .page-head .container { padding-top: 40px; padding-bottom: 40px; }
  .page-head h1 { font-size: 28px; }
  .page-body { padding: 44px 0 72px; }
}

/* --------------------------------------------------------------------------
   센터 소개: 왼쪽 서브메뉴 + 본문
   -------------------------------------------------------------------------- */
.with-subnav { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.subnav { position: sticky; top: calc(var(--header-h) + 24px); }
.subnav ul { list-style: none; border-top: 2px solid var(--ink); }
.subnav a {
  display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 400; color: var(--ink-2);
}
.subnav a:hover, .subnav a.is-active { color: var(--blue); }
.subnav a.is-active { border-bottom-color: var(--blue); }
@media (max-width: 900px) {
  .with-subnav { grid-template-columns: 1fr; gap: 32px; }
  .subnav { position: static; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .subnav ul { display: flex; gap: 8px; border-top: 0; padding-bottom: 4px; }
  .subnav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
  .subnav a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
}

.about-section { padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.about-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.about-section h2 { font-size: 28px; margin-bottom: 22px; padding-left: 16px; border-left: 4px solid var(--blue); line-height: 1.2; }
.about-section h3 { font-size: 19px; margin: 32px 0 12px; }
.about-section p { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.about-section p strong { color: var(--ink); }
.about-section ul.bullets { list-style: none; margin: 0 0 1em; }
.about-section ul.bullets li { position: relative; padding-left: 16px; margin-bottom: 8px; color: var(--ink-2); line-height: 1.75; }
.about-section ul.bullets li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; background: var(--blue); }

.principle {
  margin: 28px 0; padding: 28px 32px; background: var(--blue-light); border-left: 4px solid var(--blue);
}
.principle .quote { font-size: 22px; font-weight: 500; color: var(--blue-dark); letter-spacing: -0.02em; margin-bottom: 8px; }
.principle .note { font-size: 14px; color: var(--ink-2); margin: 0; }

.about-section .partner-grid { margin-top: 20px; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; background: #fff; }
.person .role { font-size: 12.5px; font-weight: 500; color: var(--blue); letter-spacing: .06em; margin-bottom: 8px; }
.person .name { font-size: 19px; font-weight: 500; margin-bottom: 2px; }
.person .affil { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.person .desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; margin: 0; }
@media (max-width: 800px) { .people { grid-template-columns: 1fr; } }

.org-note { font-size: 14px; color: var(--ink-3); margin-top: 14px; }

.timeline { list-style: none; border-left: 2px solid var(--line); margin: 20px 0 0 8px; padding-left: 28px; }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -35px; top: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue);
}
.timeline .when { font-size: 13.5px; font-weight: 500; color: var(--blue); letter-spacing: .02em; margin-bottom: 4px; }
.timeline .what { font-size: 15.5px; color: var(--ink); font-weight: 400; }
.timeline .detail { font-size: 14px; color: var(--ink-3); margin: 2px 0 0; }

/* --------------------------------------------------------------------------
   게시물 상세(post.html)
   -------------------------------------------------------------------------- */
.post-head .type-chip {
  display: inline-block; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; padding: 5px 10px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 2px; margin-bottom: 16px;
}
.post-head h1 { font-size: 36px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.8); }
.post-meta strong { color: #fff; font-weight: 400; margin-right: 6px; }
.post-head .tags { margin-top: 16px; }
.post-head .tag { background: rgba(255,255,255,.14); color: #fff; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 72px; align-items: start; }
.post-layout > * { min-width: 0; }
.post-layout.no-toc { grid-template-columns: 1fr; }
.post-layout.no-toc .toc { display: none; }
.post-layout.no-toc .prose { max-width: none; }
.post-layout.no-toc .post-summary { max-width: 860px; }
.post-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.post-toolbar .left, .post-toolbar .right { display: flex; gap: 8px; flex-wrap: wrap; }

.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.toc details > summary { list-style: none; cursor: default; }
.toc details > summary::-webkit-details-marker { display: none; }
.toc-title { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 12px; text-transform: uppercase; }
.toc ul { list-style: none; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--ink-2); line-height: 1.45; margin-left: -2px; border-left: 2px solid transparent; }
.toc li.lv3 a { padding-left: 26px; font-size: 13px; color: var(--ink-3); }
.toc li a:hover { color: var(--blue); }
.toc li a.is-active { color: var(--blue); border-left-color: var(--blue); font-weight: 400; }
.toc-scroll { max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; padding-right: 6px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; border-top: 2px solid var(--ink); padding-top: 20px; }
.post-nav a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.post-nav a:hover { border-color: var(--blue); }
.post-nav .dir { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 4px; }
.post-nav .ttl { font-size: 15px; font-weight: 400; }
.post-nav .next { text-align: right; }
.post-nav .placeholder { visibility: hidden; }

.pdf-embed { width: 100%; height: 82vh; min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.pdf-bar { font-size: 13.5px; color: var(--ink-3); margin-bottom: 10px; }
.pdf-bar a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-summary { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-summary p { font-size: 17px; line-height: 1.8; color: var(--ink); margin-bottom: 14px; }
.post-summary ul { list-style: none; }
.post-summary li { position: relative; padding-left: 16px; margin-bottom: 6px; font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }
.post-summary li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--blue); }
.prose code { font-family: Menlo, Consolas, monospace; font-size: .9em; background: var(--line-2); padding: 1px 5px; border-radius: 3px; }

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; order: -1; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--bg-2); }
  .toc-scroll { max-height: none; margin-top: 12px; }
  .toc details > summary { cursor: pointer; }
  .toc-title { margin-bottom: 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
  .toc-title::after { content: "펼치기"; font-weight: 400; color: var(--blue); letter-spacing: 0; text-transform: none; }
  .toc details[open] .toc-title::after { content: "접기"; }
  .post-head h1 { font-size: 27px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .post-nav .placeholder { display: none; }
}

/* --------------------------------------------------------------------------
   본문 조판(.prose): Markdown 렌더링 결과
   -------------------------------------------------------------------------- */
.prose { font-size: 17px; line-height: 1.85; color: var(--ink); max-width: 800px; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: 27px; margin: 64px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2 .sec-no { color: var(--blue); margin-right: 10px; }
.prose h3 { font-size: 21px; margin: 44px 0 14px; scroll-margin-top: calc(var(--header-h) + 20px); color: var(--blue-dark); }
.prose h4 { font-size: 17.5px; margin: 28px 0 10px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose p { margin: 0 0 1.2em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,65,145,.35); }
.prose a:hover { text-decoration-color: var(--blue); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose li > p { margin-bottom: .6em; }
.prose sup { font-size: .68em; color: var(--blue); line-height: 0; margin-left: 1px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose img { margin: 24px auto; border: 1px solid var(--line); }
.prose figure { margin: 28px 0; }
.prose figcaption, .prose .caption { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 8px; }

/* 인용(강조문) */
.prose blockquote {
  margin: 28px 0; padding: 20px 26px; background: var(--blue-light); border-left: 4px solid var(--blue);
  font-size: 17.5px; font-weight: 400; color: var(--blue-dark); line-height: 1.7;
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .6em; }

/* 표 */
.table-wrap { overflow-x: auto; margin: 24px 0 32px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; border-top: 2px solid var(--ink); }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose th { background: var(--bg-2); font-weight: 500; color: var(--ink); white-space: nowrap; }
.prose td:first-child { font-weight: 400; }
.prose table.caption-above { margin-top: 8px; }
.prose .table-title { font-size: 14.5px; font-weight: 500; color: var(--ink); margin: 28px 0 8px; }
.prose .table-title + .table-wrap { margin-top: 0; }
.prose .table-note { font-size: 13px; color: var(--ink-3); margin: -22px 0 32px; }

/* 박스(콜아웃): Markdown에서 ::: box 제목 ... ::: 로 작성 */
.callout {
  margin: 28px 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  font-size: 15.5px;
}
.callout-title { font-weight: 500; color: var(--blue-dark); margin-bottom: 10px; font-size: 16px; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.callout ul { padding-left: 1.2em; }
.callout.callout-note { background: #fff; border-style: dashed; color: var(--ink-2); font-size: 14.5px; }
.callout.callout-focus { background: var(--blue-light); border-color: #c5d6f0; }

/* 숫자 타일: ::: stats ... ::: */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 32px; }
.stat { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 18px 18px 16px; }
.stat .value { font-size: 30px; font-weight: 500; color: var(--blue); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.stat .label { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .stats { grid-template-columns: 1fr; } }

/* 참고문헌: ::: refs ... ::: */
.refs { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.refs ol { padding-left: 2.2em; }
.refs li { margin-bottom: 8px; }
.refs a { word-break: break-all; }

/* 발간 정보: ::: info ... ::: */
.pubinfo { margin: 24px 0 32px; border-top: 2px solid var(--ink); font-size: 15px; }
.pubinfo dl { display: grid; grid-template-columns: 110px 1fr; margin: 0; }
.pubinfo dt { padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-weight: 500; }
.pubinfo dd { padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.pubinfo dd p { margin: 0 0 .4em; }
.pubinfo dd p:last-child { margin-bottom: 0; }

/* 로딩, 오류 */
.loading { padding: 40px 0; color: var(--ink-3); }
.error-box { padding: 24px; border: 1px solid #f0c4c4; background: #fff6f6; color: #8a2b2b; border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   문의 페이지
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.contact-card h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.contact-card h3 svg { width: 20px; height: 20px; color: var(--blue); }
.contact-card p { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 6px; }
.contact-card a.link { color: var(--blue); font-weight: 400; }
.contact-card .map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--blue); font-weight: 400; }
.contact-card .map-link svg { width: 14px; height: 14px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.form-wrap { max-width: 760px; }
.form-wrap h2 { font-size: 26px; margin-bottom: 8px; }
.form-wrap .form-note { font-size: 14.5px; color: var(--ink-3); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 400; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 15px;
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-mid); outline-offset: 1px; border-color: var(--blue-mid); }
.field textarea { min-height: 160px; resize: vertical; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   푸터
   -------------------------------------------------------------------------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 56px 0 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand-mark { color: #fff; font-size: 22px; }
.footer .brand-name strong { color: #fff; font-size: 16px; }
.footer .brand-name span { color: rgba(255,255,255,.55); }
.footer .brand-sep { background: rgba(255,255,255,.2); }
.footer address { font-style: normal; margin-top: 18px; line-height: 1.8; }
.footer address a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: center; text-align: center; padding: 20px 0 24px; font-size: 12.5px; color: rgba(255,255,255,.5); }
@media (max-width: 800px) { .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; } }

/* 인쇄 */
@media print {
  .topbar, .header, .footer, .post-toolbar, .toc, .post-nav, .contact-strip { display: none !important; }
  .page-head { background: none !important; color: #000; }
  .page-head h1 { color: #000; }
  .post-layout { display: block; }
  .prose { max-width: none; font-size: 11pt; }
}

/* --------------------------------------------------------------------------
   구분선 (가운데점 대신 사용하는 얇은 세로선)
   -------------------------------------------------------------------------- */
.sep { display: inline-block; width: 1px; height: .85em; background: currentColor; opacity: .35; margin: 0 .6em; vertical-align: -0.08em; }

/* --------------------------------------------------------------------------
   홈: 최신 소식 목록
   -------------------------------------------------------------------------- */
.news { list-style: none; border-top: 2px solid var(--ink); }
.news li { border-bottom: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 4px; }
.news a:hover .news-title { color: var(--blue); }
.news-type { justify-self: start; font-size: 13px; font-weight: 400; color: var(--blue); background: var(--blue-light); padding: 4px 10px; border-radius: 2px; white-space: nowrap; }
.news-title { font-size: 17px; font-weight: 400; color: var(--ink); line-height: 1.5; transition: color .15s; }
.news-title em { font-style: normal; font-size: 14px; font-weight: 400; color: var(--ink-3); margin-left: 10px; }
.news-date { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .news a { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px 2px; }
  .news-type { grid-column: 1; }
  .news-date { grid-column: 2; grid-row: 1; }
  .news-title { grid-column: 1 / -1; font-size: 16px; }
  .news-title em { display: block; margin: 2px 0 0; }
}

/* 로고 이미지 크기 */
.footer .brand-logo { height: 24px; }
@media (max-width: 900px) { .header .brand-logo { height: 24px; } }

/* 게시물 사진 (data/posts.js 의 images) */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 32px; }
.gallery.single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.gallery figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 600px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.post-layout.narrow .prose, .post-layout.narrow .gallery { max-width: 860px; }
