/* =====================================================================
   CT&RPL — Computational Transport & Reactor Physics Laboratory
   Shared stylesheet.  Edit design tokens in :root to re-theme the site.
   ===================================================================== */

:root {
  /* Brand palette: deep navy + "Cherenkov" cyan accent */
  --navy:        #0c1c2e;
  --navy-deep:   #081320;
  --navy-soft:   #14304a;
  --cyan:        #15bcd6;
  --cyan-bright: #4fd6ec;
  --cyan-ghost:  rgba(21, 188, 214, 0.12);

  /* Neutrals */
  --ink:       #1b2733;
  --muted:     #5d6b7a;
  --line:      #e4e9ef;
  --bg:        #ffffff;
  --surface:   #f6f9fb;
  --surface-2: #eef3f7;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Metrics */
  --maxw: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(12, 28, 46, .06), 0 8px 24px rgba(12, 28, 46, .06);
  --shadow-hover: 0 2px 4px rgba(12, 28, 46, .08), 0 14px 34px rgba(12, 28, 46, .12);
  --nav-h: 64px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
main { min-height: 60vh; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 70ch; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(12,28,46,.08);
  overflow: visible;
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: var(--nav-h);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--navy); font-family: var(--font-display); font-weight: 600;
  white-space: nowrap; margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand .brand-logo {
  height: 58px; width: auto; border-radius: 6px; object-fit: contain;
  background: transparent; flex: none;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; color: #3a4a5c; font-size: .94rem; font-weight: 500;
  padding: 9px 13px; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); background: var(--surface); text-decoration: none; }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px;
  background: var(--cyan);
}
.has-children > a::after { content: " ▾"; color: var(--muted); font-size: .78em; }
.brand-acronym .amp { font-family: inherit; }

/* Mega-menu panel */
.mega-panel {
  position: absolute; top: 100%; left: 0; width: 100%;
  background: var(--navy-deep);
  border-top: 2px solid var(--cyan);
  box-shadow: 0 12px 40px rgba(12,28,46,.22);
  padding: 26px 0;
  display: none; z-index: 200;
}
.mega-panel.open { display: block; }
.mega-inner { display: flex; align-items: center; gap: 48px; }
.mega-title {
  color: var(--cyan-bright); font-family: var(--font-display); font-weight: 700;
  font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.mega-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.mega-link {
  color: #b0c4d8; font-size: .95rem; font-weight: 500;
  padding: 8px 16px; border-radius: 6px; text-decoration: none;
  transition: background .12s, color .12s;
}
.mega-link:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.mega-link.active { color: var(--cyan-bright); background: rgba(21,188,214,.12); }

/* Sitemap icon button */
.smap-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1.5px solid #c8d6e2; border-radius: 8px;
  color: #3a4a5c; width: 34px; height: 34px; cursor: pointer; flex-shrink: 0;
  transition: background .14s, border-color .14s, color .14s;
}
.smap-btn:hover { background: var(--surface); border-color: var(--navy); color: var(--navy); }

/* hamburger */
.nav-toggle {
  display: none; background: none; border: 0; color: var(--navy); cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: #fff; padding: 0; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 64px 0;
}
.hero h1 {
  color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0 0 8px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.hero p { color: #c9d6e2; font-size: 1.06rem; max-width: 60ch; }
.hero-intro-ko { font-size: .9rem !important; color: rgba(180,200,220,.72) !important; margin-top: 10px !important; }
.hero-figure img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.4); width: 100%; }
.hero-figure .img-fallback { aspect-ratio: 16/10; }

/* --- Lab photo slideshow (hero) --- */
.lab-slideshow {
  position: relative; width: 100%; aspect-ratio: 16/10;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.lab-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; animation-name: heroFade; animation-iteration-count: infinite; animation-timing-function: ease;
}

/* --- Research Fields card slideshow --- */
.card-slideshow {
  position: relative; width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: var(--navy-deep);
}
.card-slide {
  position: absolute; inset: 0;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  background-color: #fff;
  opacity: 0;
  animation-name: labFade;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
.card-slideshow.playing .card-slide { animation-play-state: running; }

/* --- Board photo grid --- */
.board-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 32px;
}
.board-photo { border-radius: var(--radius); overflow: hidden; }
.board-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s ease; }
.board-photo:hover img { transform: scale(1.04); }
.board-caption { padding: 8px 10px; font-size: .88rem; color: var(--muted); text-align: center; }
@media (max-width: 600px) { .board-photo-grid { grid-template-columns: 1fr; } }

/* Campus map zoomable viewer */
.map-wrap { position: relative; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map-viewport { width: 100%; height: 460px; overflow: hidden; cursor: grab; position: relative; background: var(--surface); }
.map-viewport:active { cursor: grabbing; }
.campus-map { width: auto; height: auto; max-width: none; transform-origin: top left; display: block; pointer-events: none; user-select: none; }
.map-controls { position: absolute; top: 10px; right: 10px; z-index: 10; display: flex; gap: 6px; }
.map-btn {
  width: 32px; height: 32px; border-radius: 6px;
  border: none; cursor: pointer; font-size: 1rem; line-height: 1;
  background: rgba(255,255,255,.88); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.map-btn:hover { background: #fff; }
@media (prefers-color-scheme: dark) {
  .map-btn { background: rgba(40,40,40,.88); color: var(--ink); }
  .map-btn:hover { background: rgba(60,60,60,.95); }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card .card-body { padding: 20px 22px; }
.card .card-figure img:not(.fi-img),
.card .card-figure .img-fallback { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
a.card.field-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
a.card.field-card:hover { text-decoration: none; }

/* Field card: synchronized image + item with arrow navigation */
.card-figure { position: relative; }
.fi-img {
  display: block; width: 100%; aspect-ratio: 16/9;
  object-fit: cover; background: #fff;
  transition: opacity .35s ease;
}
.fi-prev, .fi-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(12,28,46,.55); color: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s, background .18s;
  z-index: 10;
}
.fi-prev { left: 8px; }
.fi-next { right: 8px; }
.card-figure:hover .fi-prev,
.card-figure:hover .fi-next { opacity: 1; }
.fi-prev:hover, .fi-next:hover { background: rgba(12,28,46,.82); }
@media (hover: none) { .fi-prev, .fi-next { opacity: .7; } }
.fi-item {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 4px 8px; min-height: 3.8em;
  transition: opacity .35s ease;
}
.fi-item .code-chip { flex-shrink: 0; }
.fi-item .expansion { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.fi-dots { display: flex; gap: 6px; margin-top: 10px; justify-content: center; }
.fi-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line); transition: background .2s, transform .2s;
}
.fi-dot.active { background: var(--cyan); transform: scale(1.35); }

/* link cards (landing pages) */
.linkcard {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); color: var(--ink);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s;
}
.linkcard:hover { text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--cyan); }
.linkcard h3 { margin: 0; }
.linkcard p { margin: 0; color: var(--muted); font-size: .95rem; }
.linkcard .go { color: var(--cyan); font-weight: 600; font-size: .9rem; margin-top: 6px; }

/* ---------- Page title block ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0; }
.page-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-head .crumb {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 8px;
}
.page-head p { margin: 10px 0 0; color: var(--muted); max-width: 70ch; }

/* ---------- People ---------- */
.people-group { margin-top: 40px; }
.people-group:first-child { margin-top: 0; }
.group-title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: 1.25rem; color: var(--navy);
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-count {
  font-family: var(--font-mono); font-size: .75rem; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 2px 10px;
}

.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.person:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.person .portrait,
.person .portrait .img-fallback { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.person .person-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.person .person-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.person .person-role { font-size: .85rem; color: var(--cyan); font-weight: 600; margin-top: -4px; }
.person .person-meta { font-size: .86rem; color: var(--muted); }
.person .person-meta strong { color: var(--ink); font-weight: 600; }
.person .interests { margin: 0; padding-left: 18px; font-size: .86rem; color: var(--muted); }
.person .interests li { margin: 2px 0; }
.person .person-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; font-size: .84rem; }

/* ---------- Profile (professor / emeritus) ---------- */
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.profile-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.profile-photo,
.profile-photo .img-fallback { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; }
.profile h2 { margin: 0 0 4px; font-size: 1.7rem; }
.profile .role-line { color: var(--muted); margin-bottom: 18px; }
.info-list { list-style: none; padding: 0; margin: 16px 0 0; }
.info-list li { display: flex; gap: 10px; padding: 6px 0; font-size: .94rem; border-bottom: 1px dashed var(--line); }
.info-list .k { flex: none; width: 92px; color: var(--muted); font-size: .82rem; padding-top: 1px; }
.info-list .v { color: var(--ink); }
.btn-cv {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: var(--cyan); color: #042b33; font-weight: 600; font-size: .9rem;
  padding: 9px 16px; border-radius: 999px;
}
.btn-cv:hover { background: var(--cyan-bright); text-decoration: none; }

.subhead {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--navy);
  margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--cyan-ghost);
}
.subhead:first-child { margin-top: 0; }
.stack-list { list-style: none; padding: 0; margin: 0; }
.stack-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
.stack-list li:last-child { border-bottom: 0; }

.edu-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.edu-item:last-child { border-bottom: 0; }
.edu-item .deg { font-weight: 600; color: var(--navy); }
.edu-item .where { color: var(--muted); font-size: .92rem; }
.edu-item .note { font-size: .9rem; color: var(--ink); margin-top: 2px; }

/* ---------- Code-chip motif ---------- */
.code-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.code-row:last-child { border-bottom: 0; }
.code-chip {
  flex: none; font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  color: var(--navy); background: var(--cyan-ghost); border: 1px solid rgba(21,188,214,.35);
  border-radius: 6px; padding: 3px 9px; letter-spacing: .02em;
}
.code-row .expansion { color: var(--muted); font-size: .92rem; }

/* ---------- Research area ---------- */
.ra-section { margin-top: 48px; }
.ra-section:first-child { margin-top: 0; }
.ra-title { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; margin: 0 0 22px; }
.ra-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); flex: none; }
.ra-item .card-body { display: flex; flex-direction: column; gap: 4px; }
.ra-item .ra-name { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.ra-item .ra-desc { color: var(--muted); font-size: .92rem; }
.card.ra-item .card-figure img,
.card.ra-item .card-figure .img-fallback { object-fit: contain; background: #fff; }
.ra-item { text-decoration: none; color: inherit; }
.ra-item:hover .ra-name { color: var(--cyan); }

/* ---------- Research item page ---------- */
.ri-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px;
  font-size: .9rem; color: var(--cyan); font-weight: 600;
}
.ri-back:hover { text-decoration: underline; }
.ri-layout { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.ri-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.ri-slideshow { position: relative; }
.ri-img-wrap {
  position: relative;
  background: #f5f7fa; border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  height: 280px; overflow: hidden;
}
.ri-img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 16px; box-sizing: border-box; transition: opacity .18s ease; }
.ri-prev, .ri-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(12,28,46,.55); color: #fff; font-size: 1.4rem; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .18s; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.ri-prev { left: 8px; }
.ri-next { right: 8px; }
.ri-img-wrap:hover .ri-prev, .ri-img-wrap:hover .ri-next { opacity: 1; }
@media (hover: none) { .ri-prev, .ri-next { opacity: .7; } }
.ri-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.ri-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); cursor: default; transition: background .2s; }
.ri-dot.active { background: var(--cyan); }
.ri-subtitle { color: var(--cyan); font-weight: 600; font-size: 1rem; margin: 0 0 12px; }
.ri-researchers { font-size: .88rem; margin: 0 0 20px; color: var(--ink); }
.ri-researchers-label { font-weight: 600; color: var(--cyan); }
.ri-researcher { color: var(--ink); }
.ri-email { color: var(--muted); text-decoration: none; }
.ri-email:hover { color: var(--cyan); text-decoration: underline; }
.ri-desc-block { margin-bottom: 28px; }
.ri-desc-en {
  color: var(--ink); font-size: .97rem; line-height: 1.75; margin: 0 0 14px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.ri-desc-ko { color: var(--muted); font-size: .92rem; line-height: 1.8; margin: 0; word-break: keep-all; }
.ri-papers { margin: 8px 0 0; padding-left: 20px; }
.ri-papers li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .91rem; color: var(--ink); line-height: 1.55; }
.ri-papers li:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .ri-layout { grid-template-columns: 1fr; }
  .ri-aside { position: static; }
}

/* ---------- Site map overlay ---------- */
.smap-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.7); align-items: center; justify-content: center; padding: 16px;
}
.smap-overlay.open { display: flex; }
.smap-box {
  background: #fff; border-radius: var(--radius); box-shadow: 0 24px 64px rgba(0,0,0,.45);
  max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 40px 44px 36px; position: relative;
}
.smap-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; color: var(--ink);
}
.smap-close:hover { background: var(--surface-2); }
.smap-heading { margin: 0 0 28px; font-size: 1.5rem; color: var(--navy); }
.smap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.smap-section { display: flex; flex-direction: column; gap: 6px; }
.smap-parent {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--navy); text-decoration: none; padding-bottom: 6px;
  border-bottom: 2px solid var(--cyan-ghost);
}
.smap-parent:hover { color: var(--cyan); }
.smap-children { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.smap-child { font-size: .9rem; color: var(--muted); text-decoration: none; padding: 3px 0 3px 10px; border-left: 2px solid var(--line); }
.smap-child:hover { color: var(--cyan); border-left-color: var(--cyan); }
@media (max-width: 600px) {
  .smap-grid { grid-template-columns: repeat(2, 1fr); }
  .smap-box { padding: 32px 24px 28px; }
}
@media (prefers-color-scheme: dark) {
  .smap-box { background: var(--surface); }
  .smap-close { background: var(--surface-2); }
  .ri-img-wrap { background: #1a2a2e; }
}

/* ---------- Courses ---------- */
.course-level { display: none; }
.course-level.active { display: block; }
.course {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px;
}
.course h3 { margin: 0 0 4px; font-size: 1.15rem; }
.course .opens { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .05em; }
.course .course-main { margin: 12px 0 0; color: var(--ink); font-size: .96rem; }
.course .course-outline { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Publications ---------- */
.pub-toolbar { margin-bottom: 20px; }
.pub-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.pub-tabs::-webkit-scrollbar { display: none; }
.pub-tab-btn {
  padding: 10px 20px; border: none; background: none; cursor: pointer;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: color .2s, border-color .2s;
}
.pub-tab-btn:hover { color: var(--ink); }
.pub-tab-btn.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.pub-section { display: none; }
.pub-section.active { display: block; }
.pub-list { counter-reset: pub; list-style: none; padding: 0; margin: 16px 0 0; }
.pub-list li {
  position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line);
  font-size: .94rem; line-height: 1.6; color: var(--ink);
}
.pub-list li::before {
  counter-increment: pub; content: counter(pub);
  position: absolute; left: 0; top: 12px; width: 30px; text-align: right;
  font-family: var(--font-mono); font-size: .8rem; color: var(--cyan); font-weight: 600;
}
.pub-table-wrap { overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.pub-table-wrap::-webkit-scrollbar { display: none; }
.pub-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pub-table thead th {
  text-align: left; padding: 8px 14px; background: var(--surface);
  border-bottom: 2px solid var(--cyan-ghost); color: var(--muted);
  font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.pub-table thead th:nth-child(1) { width: 54px; }
.pub-table thead th:nth-child(2) { width: 190px; }
.pub-table thead th:nth-child(3) { width: 200px; }
.pub-table tbody tr { border-bottom: 1px solid var(--line); }
.pub-table tbody tr:last-child { border-bottom: none; }
.pub-table tbody td { padding: 10px 14px; vertical-align: top; }
.pub-year-cell { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.pub-venue-cell { color: var(--navy); font-size: .87rem; line-height: 1.5; }
.pub-venue-abbr { font-size: .8rem; color: var(--cyan); font-weight: 600; }
.pub-authors-cell { color: var(--ink); font-size: .85rem; line-height: 1.4; }
.pub-title-cell { color: var(--ink); font-size: .9rem; line-height: 1.5; }

/* ---------- Contact / join ---------- */
/* ---------- Home stats (Our People) ---------- */
.stat-grid {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px;
}
.stat-card {
  flex: 1 1 140px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--cyan); text-decoration: none; }
.stat-num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  color: var(--navy); line-height: 1;
}
.stat-label { font-size: .95rem; font-weight: 600; color: var(--ink); text-align: center; }
.stat-label-ko { font-size: .78rem; color: var(--muted); }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cyan);
  border-radius: var(--radius); padding: 24px 26px;
}
.callout h3 { margin: 0 0 10px; }
.callout ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink); }
.callout li { margin: 4px 0; }
.office-groups { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.office-group { display: flex; flex-direction: column; gap: 4px; }
.office-label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.office-rooms { margin: 0; padding-left: 16px; list-style: disc; }
.office-rooms li { color: var(--ink); font-size: .93rem; margin: 3px 0; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 70px 24px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
}
.empty .icon { font-size: 2rem; margin-bottom: 10px; }

/* ---------- Image fallback (when a linked Google URL fails) ---------- */
.img-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  color: var(--cyan-bright); font-family: var(--font-display); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; user-select: none;
}
.img-fallback span { font-size: clamp(1rem, 4vw, 1.6rem); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #b9c7d4; padding: 40px 0; margin-top: 64px;
  border-top: 3px solid var(--cyan);
}
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.site-footer .lab-name { font-family: var(--font-display); color: #fff; font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.site-footer a { color: var(--cyan-bright); }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; }
.site-footer .addr { font-size: .9rem; line-height: 1.7; }
.site-footer .copyright { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #7e90a1; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--cyan-bright); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .hero-figure { order: -1; }
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile-aside { position: static; max-width: 280px; }
  .grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .site-footer .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .smap-btn { display: none; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(12,28,46,.1);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.open .nav-links { max-height: 80vh; overflow-y: auto; }
  .nav-links > li { width: 100%; }
  .nav-links a { padding: 12px 14px; color: var(--navy); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--cyan); }
  .has-children > a::after { float: right; }
  .mega-panel { display: none !important; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Alumni ------------------------------------------------------------ */
.al-group { margin-bottom: 48px; }
.al-heading { font-size: 1.1rem; font-weight: 700; color: var(--cyan); margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--cyan-ghost); }
.al-table-wrap { overflow-x: auto; scrollbar-width: none; }
.al-table-wrap::-webkit-scrollbar { display: none; }
.al-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.al-table th:nth-child(1) { width: 52px; white-space: nowrap; }
.al-table th:nth-child(3) { width: 210px; }
.al-table th:nth-child(4) { width: 55%; }
.al-table thead th { text-align: left; padding: 8px 14px; background: var(--surface);
  color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.al-table tbody tr { border-bottom: 1px solid var(--line); }
.al-table tbody tr:last-child { border-bottom: none; }
.al-table tbody td { padding: 10px 14px; vertical-align: middle; }
.al-year-cell { color: var(--muted); font-size: .85rem; vertical-align: top; white-space: nowrap; }
.al-name { font-weight: 600; color: var(--ink); vertical-align: top; }
.al-name-en { display: block; white-space: nowrap; line-height: 1.4; }
.al-ko { font-weight: 400; color: var(--muted); font-size: .85rem; }
.al-ko-name { display: block; line-height: 1.4; }
.al-now { vertical-align: top; word-break: keep-all; }
.al-now-en { display: block; color: var(--ink); line-height: 1.5; }
.al-now-ko { display: block; line-height: 1.4; }
.al-thesis { vertical-align: top; }
.al-thesis-en { display: block; color: var(--ink); font-size: .85rem; line-height: 1.5; }
.al-thesis-ko { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }

@media (max-width: 460px) {
  .container { padding: 0 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .brand .brand-acronym { font-size: .95rem; }
}
