/* ==========================================================================
   LIT @ KAIST — site styles
   ========================================================================== */
:root {
  --bg: #ffffff;
  --fg: #1a1d21;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #073f78;      /* 헤더 남색으로 통일 */
  --accent-dark: #073f78;
  --nav-active: #073f78;  /* 상단 메뉴 선택 배경 = 페이지 제목 색(accent-dark) */
  --soft: #f6f8fa;
  --badge: #b45309;
  --max: 920px;
  /* 헤더(단색 + 선택 반전) — theme.js 가 계절별로 덮어씀 (없으면 이 기본값) */
  --header-bg: #073f78; --header-fg: #ffffff; --header-active-bg: #ffffff; --header-active-fg: #073f78; --header-line: #0a2f5e;
  /* 패널 그룹색 — theme.js 가 계절별로 덮어씀 */
  --t-navy-bg: linear-gradient(150deg, #0a4884, #073f78 55%, #06365f); --t-navy-fg:#eaf1fb; --t-navy-head:#fff; --t-navy-muted:#c4d4ea; --t-navy-link:#9fccff; --t-navy-border:rgba(255,255,255,.22);
  --t-white-bg:#ffffff; --t-white-fg:#28323f; --t-white-head:#073f78; --t-white-muted:#5b6675; --t-white-link:#073f78; --t-white-border:#e5e7eb;
  --t-gray-bg:#f3f5f8; --t-gray-fg:#28323f; --t-gray-head:#073f78; --t-gray-muted:#5b6675; --t-gray-link:#073f78; --t-gray-border:#e2e7ee;
  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Arial, sans-serif;
  --font-head: "Space Grotesk", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* 전체 글자를 한 단계 크게: 루트를 키우면 rem 기반 크기가 모두 확대됨 (16 → 17px) */
html { -webkit-text-size-adjust: 100%; font-size: 106.25%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

/* 제목: 영문은 Space Grotesk(넓은 자간), 한글은 Pretendard로 자동 폴백 */
h1, h2, h3, .slide-title, .identity .lead, .page-head h1, .ni-title, .year,
.rt-text h3, .research-area h3, .contact-sub, .cc-name {
  font-family: var(--font-head);
  letter-spacing: .01em;
}
.slide-title, .identity .lead, .page-head h1, .panel h1 { letter-spacing: .02em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--header-line);
  background: var(--header-bg);
  position: sticky; top: 0; z-index: 10;
  transition: background .3s ease, border-color .3s ease, box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.site-header .wrap {
  display: flex; align-items: stretch; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; min-height: 66px; padding-top: 0; padding-bottom: 0;
  max-width: 1020px; /* 메뉴 한 줄은 유지하되, 로고와 메뉴가 과하게 벌어지지 않게 */
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--header-fg); letter-spacing: .02em; display: flex; align-items: center; }
.brand span { color: var(--header-fg); }
.brand-logo { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .95; }
@media (max-width: 600px) { .brand-logo { height: 32px; } }
.nav { display: flex; gap: 4px; flex-wrap: nowrap; align-items: stretch; }
.nav a {
  color: var(--header-fg); padding: 0 12px; border-radius: 0; font-size: 15.2px; /* 루트 확대와 무관하게 원래 크기 유지 */
  font-family: var(--font-head); white-space: nowrap; /* 강조용(제목) 폰트 + 한 줄 유지 */
  display: flex; align-items: center;
}
.nav a:hover:not(.active) { background: rgba(127,127,127,.22); text-decoration: none; }
.nav a.active { background: var(--header-active-bg); color: var(--header-active-fg); border-radius: 0; }
/* 좁은 화면에서는 한 줄 강제 해제(가로 넘침 방지) */
@media (max-width: 980px) { .nav { flex-wrap: wrap; } }

/* language toggle — 지구본 + 슬라이드 스위치 (KO/EN) */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: transparent; border: 1px solid currentColor; color: var(--header-fg); border-radius: 999px;
  padding: 4px 9px; margin-left: 6px; align-self: center; font: inherit;
  transition: border-color .15s, background .15s;
}
.lang-toggle:hover { background: rgba(127,127,127,.22); }
.lt-globe { color: var(--header-fg); flex: none; transition: color .15s; }
.lt-switch { position: relative; display: inline-flex; }
.lt-opt {
  position: relative; z-index: 1; width: 30px; text-align: center;
  font-size: 12.2px; font-weight: 700; line-height: 20px; color: var(--header-fg); opacity: .55;
  transition: color .2s, opacity .2s; letter-spacing: .02em;
}
.lt-knob {
  position: absolute; top: 0; left: 0; width: 30px; height: 20px;
  background: var(--header-active-bg); border-radius: 999px; z-index: 0;
  transition: transform .22s ease;
}
html[lang="ko"] .lt-knob { transform: translateX(0); }
html[lang="en"] .lt-knob { transform: translateX(30px); }
html[lang="ko"] .lt-opt:first-child,
html[lang="en"] .lt-opt:last-child { color: var(--header-active-fg); opacity: 1; }

/* nav dropdown (Journal/Conferences/Patents → International / Domestic) */
.dropdown { position: relative; display: flex; align-items: stretch; }
.dropdown > .drop-toggle::after { content: " ▾"; font-size: .8em; color: var(--muted); }
.dropdown > .drop-toggle.active::after { color: #fff; }
.dropdown-menu {
  position: absolute; left: 0; top: 100%; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.10); padding: 6px; margin-top: 0;
  display: none; z-index: 30;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 8px 12px; border-radius: 0; color: var(--fg);
  font-size: 14.7px; white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--soft); text-decoration: none; }

/* Publications 통합 드롭다운 (Journal / Conferences / Patents 그룹) */
.dropdown-menu-pubs { min-width: 200px; }
.dm-group { padding: 2px 0; }
.dm-group + .dm-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.dm-head { font-weight: 700; color: var(--fg); }
.dm-head.active { color: var(--accent); }
.dm-group > a:not(.dm-head) {
  padding-left: 24px; font-size: 14.1px; color: var(--muted);
}
.dm-group > a:not(.dm-head):hover { color: var(--fg); }

/* ---------- hero (landing) ---------- */
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: 2.2rem; margin: 0 0 .35em; line-height: 1.2; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- scroll reveal (fade-in on scroll) ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* 같은 그룹 내 순차 등장(stagger) */
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- full-width hero slider (home) ---------- */
.hero-slider {
  position: relative; width: 100%; height: 90vh; min-height: 540px; max-height: 980px;
  overflow: hidden; background: var(--accent-dark);
}
.hero-slider .slides { position: absolute; inset: 0; }
.hero-slider .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: flex-start;
  opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.hero-slider .slide.is-active { opacity: 1; pointer-events: auto; }
/* 텍스트 가독성용 어두운 오버레이 */
.hero-slider .slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.55));
}
.hero-slider .slide-inner {
  position: relative; z-index: 2; color: #fff;
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 13vh 24px 0;
  /* 스크롤 내릴 때 reveal.js 가 --hero-fade(1→0) 를 갱신 */
  opacity: var(--hero-fade, 1);
  transform: translateY(calc((1 - var(--hero-fade, 1)) * -40px));
}
.hero-slider .slide-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem); margin: 0 0 .25em; line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero-slider .slide-sub {
  font-size: clamp(1rem, 2vw, 1.3rem); margin: 0; opacity: .95;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.22); color: #fff; font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.slider-arrow:hover { background: rgba(255,255,255,.42); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }

.slider-dots {
  position: absolute; bottom: 18px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 9px;
}
.slider-dot {
  width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; transition: background .15s, transform .15s;
}
.slider-dot:hover { background: rgba(255,255,255,.8); }
.slider-dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 600px) {
  .hero-slider { height: 68vh; min-height: 420px; }
  .slider-arrow { width: 38px; height: 38px; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; padding: 24px 0 56px; }
.card {
  display: block; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; background: var(--bg); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card:hover { text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.07);
  transform: translateY(-2px); border-color: var(--accent); }
.card h3 { margin: 0 0 .25em; color: var(--fg); font-size: 1.2rem; }
.card .c-count { color: var(--accent); font-weight: 700; font-size: 1.6rem; }
.card .c-desc { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.card .c-break { color: var(--muted); font-size: .8rem; margin-top: 8px;
  padding-top: 8px; border-top: 1px dashed var(--line); }

/* ---------- list pages ---------- */
.page-head { padding: 48px 0 12px; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; color: var(--accent-dark); }
.page-head .count { display: none; }

.toolbar { padding: 14px 0 4px; }
.search {
  width: 100%; max-width: 420px; padding: 10px 14px; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--soft);
}
.search:focus { outline: none; border-color: var(--accent); background: #fff; }

/* International / Domestic tabs on category pages */
.tabs {
  display: flex; gap: 6px; margin: 16px 0 0; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tab {
  font: inherit; font-family: var(--font-head); background: none; border: none; cursor: pointer;
  padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; border-radius: 6px 6px 0 0;
}
.tab:hover { color: var(--fg); background: var(--soft); }
.tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 700; }
.tab-count { font-size: .8rem; color: var(--muted); font-weight: 400; }
.tab.active .tab-count { color: var(--accent); }

.year-group { margin: 8px 0 28px; }
.year {
  font-size: 1.25rem; margin: 26px 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--line); color: var(--accent-dark);
}
.year-count { color: var(--muted); font-weight: 400; font-size: .85rem; }

.pub-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pub {
  position: relative; padding: 14px 14px 14px 44px; border-radius: 8px;
  border-bottom: 1px solid var(--line);
}
.pub:hover { background: var(--soft); }
.pub::before {
  content: attr(value); position: absolute; left: 12px; top: 14px;
  color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums;
}
.pub-cite { }
.pub-cite .title { font-weight: 600; }
.pub-cite .venue { font-style: italic; color: #374151; }
.pub-cite .authors strong { color: var(--accent-dark); }

.pub-meta { margin-top: 6px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.link { font-size: .85rem; font-weight: 600; }
.abs-toggle {
  font: inherit; font-size: .85rem; color: var(--accent); background: none;
  border: none; padding: 0; cursor: pointer;
}
.abs-toggle:hover { text-decoration: underline; }
.abstract {
  margin-top: 10px; padding: 12px 14px; background: var(--soft);
  border-left: 3px solid var(--accent); border-radius: 4px;
  font-size: .92rem; color: #374151; line-height: 1.65;
}

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; vertical-align: middle; letter-spacing: .02em;
}
.badge-soon { background: #fef3c7; color: var(--badge); }

.muted { color: var(--muted); }
.error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 16px; border-radius: 8px; line-height: 1.6;
}
.error code { background: #fff; padding: 1px 6px; border-radius: 4px; border: 1px solid #fecaca; }

/* ---------- scroll panels (shared: About + Home) ---------- */
.panels { overflow-x: hidden; }
.panel {
  min-height: 62vh; display: flex; align-items: center; padding: 72px 0;
  background: var(--pbg, #fff); color: var(--pfg, #1a1d21); overflow: hidden;
}
.panel.compact { min-height: auto; padding: 64px 0; }
.panel-content { width: 100%; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .panel-content { opacity: 1 !important; transform: none !important; } }

.panel .eyebrow { color: var(--plink); font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; font-size: .85rem; margin: 0 0 16px; }
.panel h1 { color: var(--phead); font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .55em; line-height: 1.15; letter-spacing: .02em; }
.panel h2 { color: var(--phead); font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 0 0 .85em; border: none; padding: 0; line-height: 1.2; }
.panel .lead { color: var(--pfg); font-size: clamp(1.2rem, 2.3vw, 1.6rem); max-width: 62ch; margin: 0; line-height: 1.75; }
.panel .muted-body { color: var(--pmuted); font-size: clamp(1.15rem, 2.1vw, 1.5rem); max-width: 66ch; margin: 0; line-height: 1.8; }
.panel .about-list { margin-top: 0; }
.panel .about-list li { color: var(--pfg); font-size: clamp(1.1rem, 1.9vw, 1.3rem); margin: .7em 0; line-height: 1.6; }
.panel .about-list strong { color: var(--phead); }
.panel .about-morelink { color: var(--plink); font-size: 1.1rem; display: inline-block; margin-top: .6em; }
.panel .highlight-list li { color: var(--pfg); border-color: var(--pborder); font-size: clamp(1rem, 1.7vw, 1.15rem); padding: 14px 0; line-height: 1.7; }
.panel .highlight-list em { color: var(--pmuted); }
.panel .highlight-list a { color: var(--plink); }

/* 패널 색상 */
.panel.c-navy { --pbg: var(--t-navy-bg); --pfg: var(--t-navy-fg); --phead: var(--t-navy-head); --pmuted: var(--t-navy-muted); --plink: var(--t-navy-link); --pborder: var(--t-navy-border); }
.panel.c-white { --pbg: var(--t-white-bg); --pfg: var(--t-white-fg); --phead: var(--t-white-head); --pmuted: var(--t-white-muted); --plink: var(--t-white-link); --pborder: var(--t-white-border); }
.panel.c-gray { --pbg: var(--t-gray-bg); --pfg: var(--t-gray-fg); --phead: var(--t-gray-head); --pmuted: var(--t-gray-muted); --plink: var(--t-gray-link); --pborder: var(--t-gray-border); }

.about-vision { margin-top: 1.1em; }

/* About: 연구 분야 — 큰 박스 안에 세로 3개 */
.research-detail { border: 1px solid var(--pborder); border-radius: 16px; background: #fff; overflow: hidden; }
.research-area { padding: 22px 26px; }
.research-area + .research-area { border-top: 1px solid var(--pborder); }
.research-area h3 { margin: 0 0 .4em; font-size: clamp(1.2rem, 2.2vw, 1.55rem); color: var(--phead); }
.research-area p { margin: 0 0 .7em; color: var(--pmuted); font-size: clamp(1rem, 1.7vw, 1.15rem); line-height: 1.7; max-width: 72ch; }
.research-area ul { margin: 0; padding-left: 1.2em; }
.research-area li { color: #3a4452; font-size: clamp(.98rem, 1.5vw, 1.1rem); margin: .35em 0; line-height: 1.55; }
.ra-fig { display: block; width: 100%; max-width: 760px; height: auto; margin: 16px auto 2px;
  border: 1.5px solid #9aa7b8; border-radius: 10px; background: #fff; padding: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,.07); cursor: zoom-in; transition: box-shadow .15s; }
.ra-fig:hover { box-shadow: 0 8px 26px rgba(0,0,0,.14); }
@media (max-width: 600px) { .research-area { padding: 18px 18px; } }

/* ---------- research projects (간결한 연도별 목록) ---------- */
.proj-year-group { margin-bottom: 6px; }
.proj-list { list-style: none; margin: 0 0 18px; padding: 0; }
.proj-item { display: block; padding: 16px 6px; border-bottom: 1px solid var(--line); }
.proj-item:hover { background: var(--soft); }
.pi-title { display: block; font-weight: 600; color: var(--fg);
  font-size: clamp(1.08rem, 1.9vw, 1.3rem); line-height: 1.5; }
.pi-meta { display: block; color: var(--muted); font-size: .92rem; margin-top: 5px; }

/* Current 과제 카드 */
.curproj { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 20px 22px; margin: 0 0 16px; background: var(--bg); }
.curproj:first-child { margin-top: 24px; }
.curproj:hover { box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.cp-title { margin: 0 0 .35em; font-size: clamp(1.15rem, 2.1vw, 1.45rem); color: var(--accent-dark); line-height: 1.4; }
.cp-meta { color: var(--accent); font-size: .9rem; margin-bottom: .5em; }
.cp-intro { margin: 0 0 .7em; color: #374151; font-size: 1rem; line-height: 1.6; }
.cp-more { background: none; border: none; cursor: pointer; padding: 0; font: inherit; }

/* Current 상세 (md 전문) */
.proj-back { font: inherit; cursor: pointer; background: var(--soft); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 14px; color: var(--accent); font-weight: 600; margin: 26px 0 18px; }
.proj-back:hover { border-color: var(--accent); }
.md-body { color: #1f2937; line-height: 1.75; }
.md-body h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--accent-dark); margin: .2em 0 .3em; line-height: 1.25; }
.md-body h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--accent-dark); margin: 1.5em 0 .4em;
  padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.md-body h3 { font-size: 1.15rem; margin: 1.2em 0 .3em; }
.md-body p { margin: .6em 0; }
.md-body ul { margin: .5em 0 1em; padding-left: 1.3em; }
.md-body li { margin: .35em 0; line-height: 1.65; }
.md-body em { color: var(--muted); }
.md-body strong { color: var(--accent-dark); }
.md-body img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 16px auto;
  border: 1.5px solid #9aa7b8; background: #fff; padding: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.07); }

/* ---------- seminar page ---------- */
.sem-list { display: flex; flex-direction: column; gap: 16px; padding: 22px 0 8px; }
.sem-card { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 18px 22px; background: var(--bg); }
.sem-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.sem-term { color: var(--accent); font-size: .85rem; font-weight: 600; }
.sem-title { margin: .2em 0 .35em; font-size: clamp(1.15rem, 2.1vw, 1.45rem); color: var(--accent-dark); line-height: 1.4; }
.sem-intro { margin: 0 0 .9em; color: #374151; line-height: 1.6; }
.sem-open { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 9px 18px; border: none; border-radius: 999px; background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; font-size: .92rem; transition: background .15s, transform .15s, box-shadow .15s; }
.sem-open:hover { background: var(--accent-dark); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11,92,173,.28); text-decoration: none; }

.proj-back { font: inherit; cursor: pointer; background: var(--soft); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 14px; color: var(--accent); font-weight: 600; margin: 26px 0 18px; }
.proj-back:hover { border-color: var(--accent); }
.sem-detail .sem-term { font-size: .9rem; }
.sem-dtitle { margin: .2em 0 .4em; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--accent-dark); }
.sem-dintro { color: #374151; line-height: 1.7; max-width: 70ch; }
.sem-h { font-size: 1.2rem; color: var(--accent-dark); margin: 1.4em 0 .5em;
  padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.sem-pdf { display: inline-block; font-weight: 600; background: var(--soft); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 14px; }
.sem-pdf:hover { border-color: var(--accent); text-decoration: none; }
.sem-refs { margin: .3em 0; padding-left: 1.3em; }
.sem-refs li { margin: .3em 0; }
.sem-weeks { overflow-x: auto; }
.sem-weeks table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sem-weeks th, .sem-weeks td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sem-weeks th { color: var(--accent-dark); font-weight: 700; white-space: nowrap; background: var(--soft); }
.sem-weeks td:first-child, .sem-weeks th:first-child { width: 56px; text-align: center; }
.sem-weeks td:nth-child(2), .sem-weeks th:nth-child(2) { white-space: nowrap; }
.sem-note { color: var(--muted); font-size: .88rem; }

/* ---------- contact page ---------- */
.contact-sub { color: var(--phead); font-size: 1.15rem; font-weight: 700; margin: 1.2em 0 .25em; }
.contact-ul { list-style: disc; padding-left: 1.3em; margin: .2em 0 0; }
.contact-ul li { color: var(--pfg); font-size: clamp(1.15rem, 2vw, 1.4rem); margin: .4em 0; line-height: 1.55; }
.contact-card {
  margin-top: 28px; border: 1px solid var(--pborder); border-left: 4px solid var(--plink);
  border-radius: 12px; padding: 18px 20px; background: rgba(0,0,0,.02); max-width: 460px;
}
.cc-label { font-size: .8rem; font-weight: 700; color: var(--plink); letter-spacing: .03em; text-transform: uppercase; }
.cc-name { font-size: 1.15rem; font-weight: 600; color: var(--phead); margin-top: 4px; }
.cc-mail { display: inline-block; margin-top: 2px; color: var(--plink); }
.contact-card p { margin: 10px 0 0; }
.contact-cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.map-wrap { display: flex; flex-direction: column; gap: 10px; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.08); }
@media (max-width: 760px) { .contact-cols { grid-template-columns: 1fr; gap: 22px; } .map-frame { height: 300px; } }

/* ---------- home: identity line ---------- */
.identity .lead { font-weight: 800; font-size: clamp(1.6rem, 4.6vw, 2.7rem); line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 560px) { .identity .lead { white-space: normal; } }
.identity .eyebrow { font-size: .95rem; }
.identity .id-sub { color: var(--pmuted); font-size: clamp(1rem, 1.8vw, 1.2rem); margin: .8em 0 0; max-width: 60ch; }

/* ---------- home: research tabs (qe.skku 스타일) ---------- */
.rt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.rt-tab { font: inherit; font-weight: 600; cursor: pointer; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--pborder); background: transparent; color: var(--pmuted); transition: all .15s; }
.rt-tab:hover { color: var(--phead); }
.rt-tab.active { background: var(--phead); color: #fff; border-color: var(--phead); }
.rt-panel { display: none; }
.rt-panel.active { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
  animation: rtIn .45s ease both; }
@keyframes rtIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rt-text h3 { color: var(--phead); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 .4em; }
.rt-text p { color: var(--pmuted); font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.7; margin: 0 0 .8em; }
.rt-text ul { margin: 0; padding-left: 1.2em; }
.rt-text li { color: var(--pfg); margin: .35em 0; line-height: 1.55; }
.rt-img { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #ffffff;
  border: 1.5px solid #9aa7b8; box-shadow: 0 4px 18px rgba(0,0,0,.07); padding: 12px;
  display: flex; align-items: center; justify-content: center; }
.rt-img img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.md-body img { cursor: zoom-in; }
@media (max-width: 720px) { .rt-panel.active { grid-template-columns: 1fr; } .rt-img { order: -1; } }

/* ---------- home: news + gallery ---------- */
.panel .hn-head h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); margin: 0; color: var(--phead); }
.panel .hn-head { border-bottom-width: 2px; border-bottom-color: var(--phead); padding-bottom: 10px; }
.panel .hn-more { color: var(--plink); }
.home-bottom { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.home-gallery { border-left: 1px solid var(--pborder); padding-left: 40px; }
@media (max-width: 720px) {
  .home-gallery { border-left: none; padding-left: 0; border-top: 1px solid var(--pborder); padding-top: 22px; }
}
.home-gallery .hn-head { margin-bottom: 6px; }
.hg-grid { display: grid; gap: 12px; }
.hg-item { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1px solid var(--pborder); }
.hg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.hg-item:hover img { transform: scale(1.05); }
@media (max-width: 720px) { .home-bottom { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- about page (legacy contact/topic base) ---------- */
.about-hero { padding: 48px 0 8px; }
.about-hero .eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; font-size: .8rem; margin: 0 0 6px;
}
.about-hero h1 { font-size: 2.2rem; margin: 0 0 .3em; line-height: 1.2; }
.about-hero p.lead { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 62ch; }

.about-block { padding: 28px 0; border-top: 1px solid var(--line); }
.about-block:first-of-type { border-top: none; }
.about-block h2 {
  font-size: 1.4rem; margin: 0 0 .6em; color: var(--accent-dark);
}
.about-block .muted-body { color: #374151; max-width: 70ch; margin: 0; }

.topic-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.topic {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--soft);
}
.topic h3 { margin: 0 0 .4em; font-size: 1.05rem; color: var(--fg); }
.topic p { margin: 0; color: var(--muted); font-size: .92rem; }
.topic ul { margin: 0; padding-left: 1.1em; }
.topic li { color: var(--muted); font-size: .88rem; line-height: 1.55; margin: .25em 0; }

/* About — 정보 목록 / 더보기 링크 / 성과 목록 */
.about-list { list-style: none; margin: .2em 0; padding: 0; }
.about-list li { margin: .35em 0; color: #374151; }
.about-list strong { color: var(--accent-dark); }
.about-morelink { font-weight: 600; font-size: .95rem; }
.highlight-list { list-style: none; margin: .2em 0 0; padding: 0; }
.highlight-list li { padding: 11px 0; border-bottom: 1px solid var(--line);
  line-height: 1.65; color: #374151; font-size: .95rem; }
.highlight-list li:last-child { border-bottom: none; }
.highlight-list em { color: #4b5563; }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.contact-item {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 14px;
}
.contact-label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.contact-value { color: var(--fg); }

/* ---------- people page ---------- */
/* 공통: 사진 placeholder / 로드 실패 */
.p-noimg, .p-imgerr {
  background: linear-gradient(135deg, #e9eef5, #d7e0ec);
}
.p-imgerr { object-fit: cover; }
.p-name-ko { color: var(--muted); font-weight: 500; font-size: .86em; margin-left: 6px; }

/* 링크 버튼 (Homepage / Scholar / GitHub / CV) */
.p-btn {
  display: inline-block; font-size: .8rem; font-weight: 600; line-height: 1;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--accent); background: var(--soft);
}
.p-btn:hover { text-decoration: none; border-color: var(--accent); background: #fff; }
.p-btn-email { background: var(--accent); color: #fff; border-color: var(--accent); }
.p-btn-email:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }

/* 연구실 대표 학생(랩장) — 이름 앞 왕관 + CV 영역 앞 배지 (무채색) */
.p-crown-ico { width: 1em; height: 1em; flex: none; display: inline-block; }
.p-crown { margin-right: 6px; color: var(--fg); }
.p-crown .p-crown-ico { width: .95em; height: .95em; vertical-align: -.12em; }
.p-coord {
  display: inline-flex; align-items: center; font-size: .76rem; font-weight: 700; line-height: 1;
  padding: 6px 11px; border-radius: 999px; letter-spacing: .01em;
  color: #fff; background: #1a1d21; border: 1px solid #1a1d21;
}
.p-coord .p-crown-ico { margin-right: 5px; }

/* Faculty — 큰 사진 + 프로필 (md 기반) */
.faculty-profile { padding: 24px 0 8px; }
.fp-head {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
}
.fp-photo {
  width: 240px; border-radius: 14px; overflow: hidden; background: var(--soft);
  border: 1px solid var(--line);
}
.fp-photo img { width: 100%; height: auto; display: block; }
.fp-meta { min-width: 0; }
.fp-name { margin: 0 0 .15em; font-size: 1.8rem; }
.fp-meta p { margin: .2em 0; color: #374151; }
.fp-meta h2 { font-size: 1.1rem; margin: 1em 0 .3em; color: var(--accent-dark);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.fp-name + p { color: var(--accent-dark); font-size: 1.05rem; }
.fp-meta ul { margin: .3em 0; padding-left: 1.1em; }
.fp-meta li { margin: .15em 0; }

/* 요약 / 전문 토글 */
.fp-toggle {
  display: flex; gap: 6px; margin: 28px 0 0; border-bottom: 1px solid var(--line);
}
.fp-tab {
  font: inherit; background: none; border: none; cursor: pointer;
  padding: 10px 18px; color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; border-radius: 6px 6px 0 0;
}
.fp-tab:hover { color: var(--fg); background: var(--soft); }
.fp-tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 700; }

/* 본문 (Overview / Education / Career …) */
.fp-body { padding-top: 8px; }
.fp-body h1 { font-size: 1.5rem; margin: .8em 0 .3em; }
.fp-body h2 {
  font-size: 1.2rem; margin: 1.4em 0 .4em; color: var(--accent-dark);
  border-bottom: 2px solid var(--line); padding-bottom: 6px;
}
.fp-body p { margin: .6em 0; color: #1f2937; line-height: 1.75; }
.fp-body ul { margin: .5em 0 1em; padding-left: 1.3em; }
.fp-body li { margin: .35em 0; line-height: 1.6; }
.fp-body em { color: var(--muted); }

@media (max-width: 640px) {
  .fp-head { grid-template-columns: 1fr; gap: 16px; }
  .fp-photo { width: 200px; margin: 0 auto; }
  .fp-name { font-size: 1.5rem; }
}

/* Members — 학위별 섹션 */
.ppl-section { margin-bottom: 8px; }
.ppl-section + .ppl-section { margin-top: 26px; }
.ppl-section-title {
  font-size: 1.2rem; margin: 18px 0 4px; padding-bottom: 6px;
  border-bottom: 2px solid var(--line); color: var(--accent-dark);
}
.ppl-section-count { color: var(--muted); font-weight: 400; font-size: .85rem; }

/* Faculty / Members — 좌측 사진 + 우측 정보 */
.people-rows { display: grid; gap: 16px; padding: 20px 0 8px; }
.person-row {
  display: grid; grid-template-columns: 132px 1fr; gap: 20px;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  background: var(--bg); transition: box-shadow .15s, border-color .15s;
}
.person-row:hover { box-shadow: 0 6px 22px rgba(0,0,0,.06); border-color: #d3dae3; }
.pr-photo { width: 132px; height: 162px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.pr-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-info { min-width: 0; }
.pr-name { margin: 2px 0 .15em; font-size: 1.25rem; }
.pr-title { color: var(--accent-dark); font-size: .95rem; }
.pr-interest {
  margin-top: 8px; font-size: .9rem; color: #374151; line-height: 1.5;
}
.pr-interest-label {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--accent);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 8px; margin-right: 8px; vertical-align: middle;
}
.pr-email { margin-top: 6px; font-size: .9rem; }
.pr-email a { word-break: break-all; }
.pr-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Alumni — 사진 카드 3열 그리드 */
.people-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; padding: 20px 0 8px;
}
.person-card {
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; text-align: center;
  background: var(--bg); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.person-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.06); transform: translateY(-2px); border-color: #d3dae3; }
.pc-photo {
  width: 120px; height: 144px; margin: 0 auto 12px; border-radius: 10px;
  overflow: hidden; background: var(--soft); flex: none;
}
.pc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-name { margin: 0 0 .1em; font-size: 1.02rem; }
.pc-title { color: var(--accent-dark); font-size: .82rem; }
/* 현 소속 / 학위논문 — 카드 본문은 왼쪽 정렬이 읽기 좋음 */
.pc-pos, .pc-thesis {
  align-self: stretch; text-align: left; font-size: .82rem; margin-top: 8px;
  color: #374151; line-height: 1.5;
}
.pc-label {
  display: inline-block; font-size: .68rem; font-weight: 700; color: var(--accent);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 7px; margin-right: 6px; vertical-align: middle;
}
.pc-thesis-t { font-style: italic; color: var(--muted); }
.pc-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

@media (max-width: 780px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .person-row { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
  .pr-photo { width: 96px; height: 120px; }
  .pr-name { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .people-grid { grid-template-columns: 1fr; }
}

/* ---------- album page ---------- */
.album-year { margin-bottom: 10px; }
.album-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px; padding: 8px 0 24px;
}
.album-card {
  font: inherit; text-align: left; cursor: pointer; padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid #c4ccd6; border-radius: 14px; background: var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.album-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); border-color: var(--accent); }
.ac-thumb {
  position: relative; display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden;
  border-bottom: 1px solid #dde3ea;
}
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.album-card:hover .ac-thumb img { transform: scale(1.04); }
.ac-count {
  position: absolute; right: 8px; bottom: 8px; font-size: .74rem; font-weight: 600;
  color: #fff; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 999px;
}
.ac-body { display: block; padding: 12px 14px 14px; }
.ac-title { display: block; font-weight: 600; color: var(--fg); line-height: 1.35; }
.ac-date { display: block; color: var(--accent); font-size: .8rem; margin-top: 3px; }
.ac-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--muted); font-size: .86rem; margin-top: 6px; line-height: 1.5;
}

/* 라이트박스 */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(12,16,22,.92); align-items: center; justify-content: center;
  padding: 56px 64px;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img {
  max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: 6px;
  background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.5); will-change: transform, opacity;
}
/* 여러 장인 앨범: 뒤에 사진이 쌓인 "뭉탱이" 느낌 */
.lb-figure.is-stack .lb-img {
  box-shadow:
    7px 7px 0 -2px rgba(255,255,255,.28),
    14px 14px 0 -4px rgba(255,255,255,.16),
    0 10px 40px rgba(0,0,0,.5);
}
.lb-caption {
  color: #f3f4f6; text-align: center; margin-top: 14px; max-width: 760px; font-size: .92rem; line-height: 1.6;
}
.lb-caption strong { display: block; font-size: 1.05rem; }
.lb-caption .lb-date { display: block; color: #9fb6d4; font-size: .8rem; margin: 2px 0 6px; }
.lb-caption .lb-desc { display: block; color: #cbd5e1; }
.lb-close {
  position: absolute; top: 16px; right: 20px; z-index: 2;
  width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 50px; height: 50px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: rgba(255,255,255,.34); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  color: #e5e7eb; font-size: .85rem; font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .lightbox { padding: 48px 12px; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-img { max-height: 70vh; }
}

/* ---------- home: research areas + recent news ---------- */
.home-research { padding: 28px 0 8px; }

.home-news { padding: 8px 0 48px; }
.hn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 6px; }
.hn-head h2 { margin: 0; font-size: 1.3rem; color: var(--accent-dark); }
.hn-more { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.recent-news { list-style: none; margin: 0; padding: 0; }
.rn-item { border-bottom: 1px solid var(--line); }
.rn-link { display: flex; gap: 14px; align-items: baseline; padding: 11px 6px; color: var(--fg); }
.rn-link:hover { background: var(--soft); text-decoration: none; }
.rn-date { color: var(--accent); font-size: .82rem; font-variant-numeric: tabular-nums;
  flex: none; width: 92px; }
.rn-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- news page ---------- */
.news-year { margin-bottom: 14px; }
.news-item { padding: 16px 4px 16px; border-bottom: 1px solid var(--line); border-radius: 6px;
  transition: background .4s; }
.ni-head { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.ni-date { color: var(--accent); font-size: .82rem; font-variant-numeric: tabular-nums; flex: none; width: 92px; }
.ni-title { margin: 0; font-size: 1.08rem; line-height: 1.4; }
.ni-content { margin: 8px 0 0 106px; color: #374151; line-height: 1.7; }
.ni-links { margin: 10px 0 0 106px; display: flex; flex-wrap: wrap; gap: 8px; }
.ni-link { font-size: .85rem; font-weight: 600; }
.news-item.ni-flash { background: #fffbeb; }
@media (max-width: 600px) {
  .ni-content, .ni-links { margin-left: 0; }
  .rn-link { flex-direction: column; gap: 2px; }
  .rn-date { width: auto; }
  .rn-title { white-space: normal; }
}

/* ---------- news admin (GitHub token) ---------- */
.admin-launch { text-align: right; padding: 8px 0 0; display: flex; gap: 8px; justify-content: flex-end; }
.admin-btn.on { color: #fff; background: var(--accent); border-color: var(--accent); }
/* 항목별 수정/삭제 */
.ni-admin { margin: 10px 0 0 106px; display: flex; gap: 8px; }
.ni-edit, .ni-del { font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; background: var(--soft); }
.ni-edit { color: var(--accent); }
.ni-edit:hover { border-color: var(--accent); background: #fff; }
.ni-del { color: #b91c1c; }
.ni-del:hover { border-color: #b91c1c; background: #fff; }
@media (max-width: 600px) { .ni-admin { margin-left: 0; } }
.admin-btn { font: inherit; font-size: .85rem; cursor: pointer; color: var(--muted);
  background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; }
.admin-btn:hover { border-color: var(--accent); color: var(--accent); }
.admin-modal { position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(12,16,22,.55); align-items: flex-start; justify-content: center; padding: 40px 16px; overflow:auto; }
.admin-modal[aria-hidden="false"] { display: flex; }
.am-panel { position: relative; width: 100%; max-width: 560px; background: #fff;
  border-radius: 14px; padding: 24px 24px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.am-panel h2 { margin: 0 0 .3em; font-size: 1.25rem; }
.am-note { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 0 0 14px; }
.am-close { position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.am-field { display: block; margin: 10px 0; }
.am-field > span { display: block; font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: 4px; }
.am-field input, .am-field textarea, .am-field select {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.am-field input:focus, .am-field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.am-field textarea.am-md { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem; line-height: 1.55; white-space: pre-wrap; }
.am-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.am-check input[type=checkbox] { width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--accent); }
.am-check > span { margin: 0; font-weight: 600; color: #374151; }
.am-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.am-remember { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.am-submit { font: inherit; font-weight: 700; cursor: pointer; color: #fff; background: var(--accent);
  border: none; border-radius: 8px; padding: 10px 22px; }
.am-submit:hover { background: var(--accent-dark); }
.am-msg { margin-top: 12px; font-size: .88rem; min-height: 1.2em; }
.am-msg.am-ok { color: #15803d; }
.am-msg.am-err { color: #b91c1c; }

/* ---------- unified admin page ---------- */
.adm-tokenbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0 16px; }
.adm-tokenbar label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 260px; font-size: .9rem; }
.adm-tokenbar input { flex: 1; font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.adm-btn { font: inherit; cursor: pointer; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; padding: 7px 14px; font-weight: 600; }
.adm-btn:hover { border-color: var(--accent); color: var(--accent); }
.adm-tokstate { font-size: .85rem; color: var(--muted); }
.adm-tokstate.ok { color: #15803d; font-weight: 600; }
.adm-tokstate.err { color: #b91c1c; font-weight: 600; }

.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.adm-tab { font: inherit; background: none; border: none; cursor: pointer; padding: 10px 16px;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.adm-tab:hover { color: var(--fg); background: var(--soft); }
.adm-tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 700; }

.adm-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.adm-bar select, .adm-filter { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.adm-filter { flex: 1; min-width: 160px; }
.adm-add { margin-left: auto; background: var(--accent); color: #fff; border-color: var(--accent); }
.adm-add:hover { background: var(--accent-dark); color: #fff; }
.adm-msg { font-size: .9rem; min-height: 1em; }
.adm-msg.adm-ok { color: #15803d; } .adm-msg.adm-err { color: #b91c1c; }

.adm-count { color: var(--muted); font-size: .85rem; margin: 4px 0; }
.adm-hl-h { margin: 1.1em 0 .4em; font-size: .95rem; color: var(--accent-dark); }
.adm-hl { margin: 0; padding-left: 1.4em; }
.adm-hl li { margin: .45em 0; line-height: 1.5; font-size: .92rem; }
.adm-list { display: flex; flex-direction: column; }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.adm-row:hover { background: var(--soft); }
.adm-row-main { flex: 1; min-width: 0; }
.adm-row-title { font-weight: 600; }
.adm-row-sub { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-row-act { display: flex; gap: 6px; flex: none; }
.adm-mini { font: inherit; font-size: .8rem; cursor: pointer; border: 1px solid var(--line);
  border-radius: 7px; background: #fff; padding: 4px 10px; color: var(--accent); }
.adm-mini:hover { border-color: var(--accent); }
.adm-mini.adm-danger { color: #b91c1c; }
.adm-mini.adm-danger:hover { border-color: #b91c1c; }
.am-cur { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 48px;
  color: var(--muted); font-size: .85rem;
}
/* 공용 푸터 (footer.js 가 주입) */
.footer-grid { display: flex; flex-direction: column; gap: 14px; }
/* 행 높이를 최댓값으로 고정해 KO/EN 전환 시 아래 요소가 움직이지 않게 함 */
.f-logos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; min-height: 26px; }
/* 로고 PNG 여백은 트리밍 완료. 영문 로고는 트리밍 비율이 살짝 작아 'KAIST' 크기를 맞추려고 조금 키움 */
.footer-logo { height: 25px; width: auto; display: block; opacity: .9; }
.fl-coe-e, .fl-dee-e { height: 25.5px; }
.f-logos a:hover .footer-logo { opacity: 1; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.f-links a { color: var(--fg); font-weight: 500; }
.f-contact { color: var(--muted); line-height: 1.7; }
.f-ext { margin-top: 2px; }
.f-ext a { color: var(--accent); font-weight: 600; }
.f-copy { color: var(--muted); }
/* 언어에 따라 학부/대학 로고·텍스트 전환 (i18n 이 <html lang> 갱신) */
html[lang="en"] .lang-ko { display: none; }
html[lang="ko"] .lang-en { display: none; }
/* 맨 위로 버튼 */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px;
  border: none; border-radius: 50%; cursor: pointer; background: var(--accent); color: #fff;
  font-size: 1.25rem; line-height: 1; box-shadow: 0 6px 18px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s, transform .2s, background .15s; z-index: 50; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent-dark); }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .pub { padding-left: 14px; }
  .pub::before { display: none; }
}
