:root {
  --navy: #1B2A4E;
  --navy-line: #34466E;
  --ink: #17213A;
  --body: #45506A;
  --muted: #6C7690;
  --line: #DDE8E8;
  --soft: #EEF5F5;
  --accent: #22407E;
  --accent-dark: #172E5E;
  --accent-light: #8FA8E0;
  --on-navy: #D7DEEE;
  --on-navy-muted: #9DABCB;
  --wrap: 1160px;
  --accent-soft: #E6ECF7;
  --accent-soft-line: #C3D0EA;
  --accent-light-hover: #AFC2EC;
  --neutral-soft: #E8F0F0;
  --neutral-line: #D1E0E0;
  --panel: #F4F9F9;
  --panel-line: #DDE9E9;
  --placeholder: #D6E4E4;
  --hero-bg: #E7F1F0;
  --laser: #F0603F;
  --coral: #E4572E;
  --coral-text: #C9492A;
  --coral-light: #FF9B7A;
  --coral-soft: #FCEDE7;
  --mint: #0F7C7A;
  --mint-dark: #0A5F5D;
  --mint-light: #5CC7C0;
  --mint-soft: #E3F3F2;
  --mint-line: #BDE3E0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--navy); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 20px; }
.brand-text span { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 6px;
}
.site-nav a:hover { background: var(--soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 500; }

/* Hero */
.hero { position: relative; background: var(--hero-bg); color: var(--ink); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.10;
}
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 48px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.08em; font-weight: 700; color: var(--coral-text); }
.band .eyebrow { color: var(--coral-light); }
.hero h1 { margin: 0 0 18px; font-size: clamp(30px, 5vw, 46px); line-height: 1.25; max-width: 820px; }
.hero p { margin: 0; font-size: 18px; color: var(--body); max-width: 740px; }
.hero .actions { margin-top: 32px; }

.page-hero { background: var(--hero-bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 38px); }
.page-hero p { margin: 0; color: var(--body); font-size: 17px; max-width: 760px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 6px;
  text-decoration: none; font-weight: 500; font-size: 15px; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--coral); color: #FFFFFF; }
.btn-light { background: var(--mint-light); color: var(--navy); font-weight: 700; }
.btn-light:hover { background: #86D8D2; color: var(--navy); }
.btn-ghost { border-color: var(--on-navy-muted); color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.hero .btn-ghost { border-color: var(--ink); color: var(--ink); }
.hero .btn-ghost:hover { background: var(--ink); color: #FFFFFF; }

/* Sections */
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.section h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 30px); line-height: 1.35; color: var(--navy); }
.section .lead { font-size: 16px; color: var(--body); max-width: 760px; margin: 0 0 12px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.figure { border-radius: 10px; overflow: hidden; background: var(--placeholder); }
.figure img { width: 100%; height: auto; }

.more { font-size: 14px; font-weight: 500; text-decoration: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-top: 36px; }
.card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 19px; color: var(--navy); }
.card p { margin: 0; font-size: 15px; color: var(--body); }
.card .num { font-size: 13px; font-weight: 700; color: var(--coral-text); letter-spacing: 0.06em; }

/* Band (recruiting) */
.band { background: var(--navy); color: #FFFFFF; }
.band h2 { color: #FFFFFF; }
.band .lead { color: var(--on-navy); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fact { border: 1px solid var(--navy-line); border-radius: 10px; padding: 20px; }
.fact b { display: block; color: var(--mint-light); font-size: 15px; margin-bottom: 4px; }
.fact span { color: var(--on-navy); font-size: 14px; }

/* Lists */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.pub-list li:last-child { border-bottom: 1px solid var(--line); }
.pub-list.numbered { counter-reset: pub; margin-top: 20px; }
.pub-list.numbered li { counter-increment: pub; position: relative; padding-left: 48px; }
.pub-list.numbered li::before { content: counter(pub) "."; position: absolute; left: 0; top: 18px; width: 36px; text-align: right; color: var(--muted); font-size: 14px; }
.pub-title { display: block; font-weight: 400; color: var(--ink); font-size: 15.5px; }
.pub-authors { display: block; font-size: 14px; color: var(--body); }
.pub-venue { display: block; font-size: 14px; color: var(--muted); }
.pub-venue em { font-style: normal; font-weight: 700; color: var(--accent); }
.pub-venue a { margin-left: 6px; font-weight: 500; text-decoration: none; }
.pub-venue a { color: var(--coral-text); }
.pub-venue a:hover { color: var(--coral); text-decoration: underline; }
.year-head { margin: 48px 0 4px; font-size: 20px; color: var(--navy); }
.year-head:first-of-type { margin-top: 8px; }
.note { font-size: 14px; color: var(--muted); }

.year-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.year-nav a {
  font-size: 14px; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
}
.year-nav a:hover { border-color: var(--accent); color: var(--accent); }

/* People */
.prof { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.prof-photo { flex: 0 0 170px; border-radius: 10px; overflow: hidden; background: var(--placeholder); }
.prof-body { flex: 1 1 420px; min-width: 0; }
.prof-body h3 { margin: 0 0 4px; font-size: 24px; color: var(--navy); }
.prof-body .role { margin: 0 0 18px; color: var(--accent); font-weight: 500; }
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--body); }
.cv li span:first-child { flex: 0 0 130px; color: var(--muted); }

.members { display: grid; grid-template-columns: repeat(4, minmax(0, 250px)); gap: 28px 24px; margin-top: 32px; align-items: stretch; }




.bio { text-align: left; color: var(--body); }
.bio a { text-decoration: none; color: var(--coral-text); }
.bio a:hover { text-decoration: underline; color: var(--coral); }
.bio-label {
  margin: 0 0 8px !important; font-size: 11px !important; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mint) !important;
}
.bio-label + .timeline { margin-bottom: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 58px 1fr; column-gap: 10px; position: relative; padding-bottom: 10px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 62px; top: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: #FFFFFF; border: 2px solid var(--coral); box-sizing: border-box;
}
.timeline li::after {
  content: ""; position: absolute; left: 65px; top: 16px; bottom: -2px; width: 1px; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.t-year { white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; padding-top: 1px; }
.t-body { padding-left: 12px; font-size: 13px; color: var(--ink); line-height: 1.45; }
.t-body b { font-weight: 500; color: var(--navy); }
.t-body small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.member {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 20px 22px; text-align: center; overflow: hidden;
  box-shadow: 0 1px 2px rgba(19, 35, 58, 0.04), 0 10px 28px -12px rgba(19, 35, 58, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.member::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint-light) 100%);
}
.member:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(19, 35, 58, 0.05), 0 18px 36px -14px rgba(19, 35, 58, 0.22); }
.member .photo {
  width: 100%; max-width: 180px; margin: 4px auto 18px;
  aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--placeholder);
  box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 5px var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 32px; font-weight: 700;
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin: 0; font-size: 17px; color: var(--navy); letter-spacing: 0.01em; }
.member h3 + p {
  margin: 6px 0 0; display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--mint-dark); background: var(--mint-soft); border-radius: 999px; padding: 3px 12px;
}
.member-lead { grid-column: span 2; flex-direction: row; align-items: flex-start; gap: 22px; text-align: left; }
.member-lead::before { background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 70%, var(--coral) 100%); }
.member-lead .photo { flex: 0 0 180px; margin: 4px 0 0; }
.member-info { flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.member-lead .bio { margin-top: 14px; }
.member p { margin: 0; font-size: 14px; color: var(--body); }
.member .since, .member .bio {
  width: 100%; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  color: var(--muted); font-size: 13px; line-height: 1.55;
}

.table-box { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--navy); font-weight: 700; font-size: 13.5px; }
tr:last-child td { border-bottom: none; }

/* Research */
.topic { display: flex; flex-wrap: wrap; gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); align-items: center; }
.topic:last-child { border-bottom: 1px solid var(--line); }
.topic-body { flex: 1 1 420px; min-width: 0; }
.topic-body h3 { margin: 0 0 10px; font-size: 21px; color: var(--navy); }
.topic-body p { margin: 0 0 10px; color: var(--body); }
.topic .figure { flex: 1 1 360px; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--body); border: 1px solid var(--line); }

/* Teaching */
.course-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.course-list li { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; background: #FFFFFF; }
.course-list b { display: block; color: var(--mint); font-size: 13px; letter-spacing: 0.04em; }
.course-list span { color: var(--navy); font-weight: 500; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer h2 { margin: 0 0 8px; font-size: 16px; color: #FFFFFF; }
.site-footer p { margin: 0; font-size: 14px; line-height: 1.8; }
.site-footer a { color: var(--coral-light); }
.site-footer .copy { width: 100%; border-top: 1px solid var(--navy-line); padding-top: 20px; font-size: 12.5px; color: var(--on-navy-muted); }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 56px; }
  .facts { grid-template-columns: 1fr; }
  .prof-photo { flex-basis: 140px; }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .member { padding: 16px 12px; }
  .member h3 + p { white-space: normal; line-height: 1.4; }
  .member-lead { flex-direction: column; align-items: center; text-align: center; }
  .member-lead .photo { flex: none; margin: 4px auto 18px; }
  .cv li { flex-direction: column; gap: 0; }
  .cv li span:first-child { flex-basis: auto; }
}

/* Member publication button + dialog */
.member h3.has-pubs { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.member-lead h3.has-pubs { justify-content: flex-start; }
.pub-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 9px;
  border: 1px solid var(--accent-soft-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font: inherit; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.pub-btn:hover, .pub-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: translateY(-1px); }
.pub-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pub-btn::before { content: ""; position: absolute; inset: -9px; }
.pub-btn { position: relative; }
.pub-btn-chev { margin-left: -1px; transition: transform 0.15s ease; }
.pub-btn:hover .pub-btn-chev { transform: translateX(2px); }
body.dialog-open { overflow: hidden; }
.pub-dialog {
  width: min(760px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0;
  border: none; border-radius: 18px; background: #FFFFFF; color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(19, 35, 58, 0.45);
  display: flex; flex-direction: column; overflow: hidden;
}
.pub-dialog:not([open]) { display: none; }
.pub-dialog::backdrop { background: rgba(19, 35, 58, 0.55); backdrop-filter: blur(3px); }
.pd-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 28px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF, var(--soft));
}
.pd-eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--coral-text); }
.pd-name { margin: 0; font-size: 22px; color: var(--navy); }
.pd-count { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.pd-close {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #FFFFFF; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.pd-close:hover { background: var(--soft); }
.pd-list { margin: 0 !important; padding: 4px 28px 20px; overflow-y: auto; }
.pd-list li:first-child { border-top: none; }
.pd-list li:last-child { border-bottom: none; }
mark.me { background: var(--mint-soft); color: var(--mint-dark); font-weight: 700; border-radius: 4px; padding: 0 3px; }
@media (max-width: 640px) {
  .pd-head { padding: 20px 18px 14px; }
  .pd-list { padding: 0 18px 16px; }
  .pd-list.numbered li { padding-left: 34px; }
  .pd-list.numbered li::before { width: 26px; }
}

/* publications button sits at the bottom of each card */
.member > .pub-btn {
  margin-top: auto; width: 100%; height: 38px; justify-content: center; gap: 7px;
  border-radius: 10px; font-size: 13px;
}
.member > .pub-btn:hover .pub-btn-chev, .member > .pub-btn:focus-visible .pub-btn-chev { transform: translateX(3px); }
.member > .since { margin-bottom: 18px; }

/* Alumni current position: English over Korean */
td.pos { line-height: 1.4; }
.pos-en { display: block; color: var(--ink); font-weight: 500; }
.pos-ko { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); letter-spacing: -0.01em; }
.mil {
  display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; color: var(--navy); background: var(--neutral-soft); border: 1px solid var(--neutral-line);
}

.pos-note { font-weight: 400; color: var(--muted); font-size: 13px; }

.deg { font-weight: 700; color: var(--navy); }

/* Alumni logos */
.pos-wrap { display: flex; align-items: center; gap: 16px; }
.logo {
  flex: 0 0 120px; height: 48px; display: flex; align-items: center; justify-content: center;
  padding: 5px 10px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line); box-sizing: border-box;
}
.logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.pos-text { min-width: 0; }

.pd-legend { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

a.logo { transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
a.logo:hover { border-color: var(--coral); box-shadow: 0 4px 12px -6px rgba(19,35,58,0.3); transform: translateY(-1px); }
a.logo:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.brand-logo { width: auto; height: 92px; flex: 0 0 auto; display: block; }
.brand { gap: 16px; }
.brand-text { border-left: 1px solid var(--line); padding-left: 16px; }

/* Alumni thesis boxes */
.thesis {
  margin-top: 8px; padding: 8px 12px 9px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--panel-line);
}
.thesis-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); margin-bottom: 2px; }
.thesis-title { display: block; font-size: 13px; line-height: 1.45; color: var(--ink); }

/* Collapsible thesis */
.thesis-box { margin-top: 6px; position: relative; display: inline-block; }
.thesis-box summary {
  display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--mint-dark); padding: 3px 10px; border-radius: 999px;
  background: var(--mint-soft); border: 1px solid var(--mint-line); user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.thesis-box summary::-webkit-details-marker { display: none; }
.thesis-box summary:hover { background: var(--mint); color: #FFFFFF; border-color: var(--mint); }
.thesis-box summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.th-chev { transition: transform 0.2s ease; }
.thesis-box[open] .th-chev { transform: rotate(180deg); }


.thesis-pop {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: min(440px, 80vw);
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 14px;
  box-shadow: 0 18px 40px -12px rgba(19, 35, 58, 0.35);
}
.thesis-pop::before {
  content: ""; position: absolute; left: 22px; top: -7px; width: 12px; height: 12px; background: #FFFFFF;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.thesis-pop .thesis { background: transparent; border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0 0; margin-top: 8px; }
.thesis-pop .thesis:first-child { border-top: none; }
.thesis-pop .thesis-title { font-size: 13.5px; }

@media (min-width: 760px) { #alumni .table-box { overflow: visible; } }
#alumni tr:nth-last-child(-n+2) .thesis-pop { top: auto; bottom: calc(100% + 8px); }
#alumni tr:nth-last-child(-n+2) .thesis-pop::before { top: auto; bottom: -7px; transform: rotate(225deg); }

/* Alumni publications popover */
.pubs-box { margin-left: 6px; }
.pubs-box summary { background: var(--accent-soft); border-color: var(--accent-soft-line); color: var(--accent); }
.pubs-box summary:hover { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.pubs-box .pc { font-weight: 700; opacity: 0.75; }
.pubs-pop { width: min(620px, 86vw); max-height: 420px; overflow-y: auto; padding: 14px 18px 8px; }
.pubs-pop::before { display: none; }
.pp-head { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy); }
.pp-legend { margin: 2px 0 6px; font-size: 11.5px; color: var(--muted); }
.pp-list { margin: 0 !important; }
.pp-list li { padding: 12px 0 !important; padding-left: 36px !important; }
.pp-list li::before { top: 12px !important; width: 26px !important; }
.pp-list .pub-title { font-size: 13.5px; }
.pp-list .pub-authors, .pp-list .pub-venue { font-size: 12.5px; }

.page-hero .eyebrow, .hero .eyebrow { color: var(--coral-text); font-size: 13px; margin: 0 0 14px; }

#alumni .table-box { background: #FFFFFF; }
.members .member { box-shadow: 0 1px 2px rgba(23, 33, 58, 0.05), 0 10px 26px -14px rgba(23, 33, 58, 0.22); }

.chip-off {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--mint-dark); background: var(--mint-soft); border: 1px solid var(--mint-line);
  cursor: default; user-select: none; vertical-align: top;
}
.chip-off.pubs-off { background: var(--accent-soft); border-color: var(--accent-soft-line); color: var(--accent); }
.pubs-off { margin-left: 6px; }

@media (max-width: 640px) { .brand-logo { height: 42px; } .brand { gap: 10px; } }

.lab-lead { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--coral-text); background: var(--coral-soft); border: 1px solid #F6C9B8; }

.em-img { display: inline-block; height: 1.25em; width: auto; vertical-align: -0.3em; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.member .em-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; color: var(--muted); }
.member .em-line .em-img { vertical-align: middle; }
.member .em-line.em-top { margin-top: 10px; font-size: 13px; }
.member .em-line.em-left { justify-content: flex-start; margin-top: 8px; }
.name-ko { margin-left: 6px; font-size: 0.82em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (max-width: 640px) { .brand-text strong { font-size: 16px; } .brand-text span { font-size: 12px; margin-top: 2px; } }

/* Publications: topic filter */
.topic-filter { margin: 22px 0 8px; padding: 18px 20px 16px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px; }
.tf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tf-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-text); }
.tf-clear { border: 0; background: none; padding: 2px 4px; font: inherit; font-size: 13px; font-weight: 500; color: var(--accent); cursor: pointer; }
.tf-clear:hover { text-decoration: underline; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--accent-soft-line);
  background: #FFFFFF; color: var(--accent);
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s;
}
.topic-chip:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(23, 33, 58, 0.08); }
.topic-chip:active { transform: scale(0.97); }
.topic-chip.is-on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; box-shadow: 0 3px 10px rgba(34, 64, 126, 0.25); }

.tf-empty { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
#pub-main li::before { content: attr(data-n) "."; }
#pub-main li[hidden] { display: none; }
#pub-main li.tf-in { animation: tfIn .28s ease both; }
@keyframes tfIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .topic-filter { padding: 14px; } .topic-chip { font-size: 13px; padding: 8px 12px; } }
.pubs-section { padding-top: 32px; }
.pubs-section .topic-filter { margin-top: 0; }
.pubs-section .note { margin: 12px 0 0; font-size: 13px; text-align: left; }
.topic-chip.tc-all { border-color: #F6C9B8; color: var(--coral-text); background: #FFFFFF; }
.topic-chip.tc-all:hover { border-color: var(--coral); }
.topic-chip.tc-all.is-on { background: var(--coral); border-color: var(--coral); color: #FFFFFF; box-shadow: 0 3px 10px rgba(228, 87, 46, 0.25); }
.topic-chip.tc-all.is-on::before { content: none; }

/* Home: recruiting panel that expands under the hero button */
.join-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.join-toggle .jb-chev { transition: transform .25s ease; }
.join-toggle[aria-expanded="true"] .jb-chev { transform: rotate(180deg); }
.join-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.join-wrap.open { grid-template-rows: 1fr; }
.join-inner { overflow: hidden; }
.join-panel { margin-top: 20px; padding: 26px 28px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23, 33, 58, 0.08); max-width: 880px; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.join-wrap.open .join-panel { opacity: 1; transform: none; }
.join-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--navy); }
.hero .join-panel .join-lead { margin: 0 0 18px; font-size: 15px; color: var(--body); max-width: none; }
.join-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jf { padding: 14px 16px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 12px; }
.jf b { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: 0.06em; color: var(--coral-text); }
.jf span { font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.join-actions { margin-top: 20px; }
@media (max-width: 640px) { .join-facts { grid-template-columns: 1fr; } .join-panel { padding: 20px; } }

/* Home hero: copy + demo video */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(30px, 3.6vw, 44px); }
.hero-media { margin: 0; }
.hm-frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; background: #0E1526;
  box-shadow: 0 24px 60px rgba(23, 33, 58, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.6) inset; }
.hm-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(14, 21, 38, 0) 62%, rgba(14, 21, 38, 0.62) 100%); }
.hm-frame::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--mint) 0%, #FFC21A 55%, var(--coral) 100%); }
.hm-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; color: #FFFFFF; letter-spacing: 0.01em; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.hm-dot { width: 9px; height: 9px; border-radius: 50%; background: #FF4A1C; box-shadow: 0 0 0 0 rgba(255, 74, 28, 0.6); animation: hmPulse 1.8s ease-out infinite; flex: 0 0 auto; }
@keyframes hmPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 74, 28, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(255, 74, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 74, 28, 0); } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero-media { max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .hm-dot { animation: none; } }
/* Home: about text merged into hero */
.hero-about { margin-top: 24px; padding: 22px 26px 22px 28px; background: #FFFFFF; border-left: 4px solid var(--coral); border-radius: 4px 16px 16px 4px; box-shadow: 0 8px 22px rgba(23, 33, 58, 0.07); }
@media (max-width: 760px) { .hero-about { padding: 18px 18px 18px 20px; } }
.hero .hero-about p { font-size: 15.5px; line-height: 1.8; color: var(--body); margin: 0 0 10px; max-width: none; }
.hero .hero-about p:last-child { margin-bottom: 0; }
.hero .ha-title { margin: 0 0 12px; font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; line-height: 1.4; color: var(--navy); }

/* Home: lab news */
.news-section { padding: 56px 0 24px; }
.news-section h2 { margin-bottom: 20px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.nw-row { display: grid; grid-template-columns: 84px 56px minmax(0, 1fr) 20px; align-items: baseline; gap: 14px;
  padding: 16px 6px; color: var(--ink); text-decoration: none; transition: background .15s; border-radius: 8px; }
a.nw-row:hover { background: var(--panel); }
a.nw-row:hover .nw-go { color: var(--coral); transform: translate(2px, -2px); }
.nw-date { font-size: 14px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.nw-tag { justify-self: start; font-size: 12px; font-weight: 700; color: var(--mint-dark); background: var(--mint-soft); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.nw-text { font-size: 15px; line-height: 1.6; color: var(--body); }
.nw-go { font-size: 15px; color: var(--muted); transition: transform .15s, color .15s; }
.news-section + .section { padding-top: 56px; }
@media (max-width: 640px) {
  .nw-row { grid-template-columns: auto auto 1fr; gap: 6px 10px; }
  .nw-text { grid-column: 1 / -1; }
  .nw-go { display: none; }
}

/* Home: research areas as compact cards inside the hero */
.hero-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.ht-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(23, 33, 58, 0.08); border-radius: 16px;
  backdrop-filter: blur(4px); box-shadow: 0 2px 10px rgba(23, 33, 58, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; overflow: hidden; }
.ht-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ht); }
.ht-card:hover { transform: translateY(-3px); background: #FFFFFF; border-color: rgba(23, 33, 58, 0.12); box-shadow: 0 12px 28px rgba(23, 33, 58, 0.10); }
.ht-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ht); background: var(--ht-soft); }
.ht-icon svg { width: 22px; height: 22px; }
.ht-body { display: flex; flex-direction: column; min-width: 0; }
.ht-num { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--ht); }
.ht-title { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.ht-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ht-arrow { flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.ht-card:hover .ht-arrow { transform: translateX(4px); color: var(--ht); }
.ht-mint  { --ht: var(--mint);  --ht-soft: var(--mint-soft); }
.ht-navy  { --ht: var(--accent); --ht-soft: var(--accent-soft); }
.ht-coral { --ht: var(--coral); --ht-soft: var(--coral-soft); }
@media (max-width: 960px) { .hero-topics { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; } }
.ht-head { display: flex; align-items: baseline; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(23, 33, 58, 0.1); }
.ht-label { font-size: 18px; font-weight: 700; color: var(--navy); }
.ht-label-en { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--coral-text); }
.ht-all { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
.ht-all:hover { color: var(--coral); text-decoration: underline; }
@media (max-width: 960px) { .ht-head { margin-top: 32px; } .hero-topics { margin-top: 12px; } }
.news-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.news-section .news-head h2 { margin: 0; }
.news-all { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; }
.news-all:hover { color: var(--coral); text-decoration: underline; }
.nd-list { margin: 0; padding: 4px 22px 18px; overflow-y: auto; border-top: 0; }
.nd-list li:last-child { border-bottom: 0; }
/* Home: research areas band (navy) */
.topics-band { position: relative; background: linear-gradient(120deg, #17213A 0%, #1F2F57 55%, #213E6E 100%); overflow: hidden; }
.topics-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 220px at 88% 0%, rgba(255, 106, 31, 0.18), transparent 70%),
              radial-gradient(520px 200px at 8% 100%, rgba(30, 200, 230, 0.14), transparent 70%); }
.topics-band .wrap { position: relative; padding-top: 30px; padding-bottom: 36px; }
.topics-band .ht-head { margin-top: 0; padding-top: 0; border-top: 0; }
.topics-band .ht-label { color: #FFFFFF; }
.topics-band .ht-label-en { color: #FF9B7A; }
.topics-band .ht-all { color: #C9D6F2; }
.topics-band .ht-all:hover { color: #FFFFFF; }
.topics-band .ht-card { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; backdrop-filter: blur(6px); }
.topics-band .ht-card:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.topics-band .ht-title { color: #FFFFFF; }
.topics-band .ht-sub { color: #AEBBD8; }
.topics-band .ht-arrow { color: #8FA0C4; }
.topics-band .ht-mint  { --ht: #4FD1C5; --ht-soft: rgba(79, 209, 197, 0.16); }
.topics-band .ht-navy  { --ht: #8FA8FF; --ht-soft: rgba(143, 168, 255, 0.18); }
.topics-band .ht-coral { --ht: #FF8A65; --ht-soft: rgba(255, 138, 101, 0.18); }

/* Contact page */
.contact-section { padding-top: 40px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.ct-card { position: relative; display: flex; gap: 16px; padding: 20px 22px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ct-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ct); }
.ct-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ct); background: var(--ct-soft); }
.ct-icon svg { width: 22px; height: 22px; }
.ct-label { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ct); }
.ct-main { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.55; }
.ct-ko { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.ct-mail { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.ct-mail svg { width: 15px; height: 15px; }
.ct-mint  { --ct: var(--mint);  --ct-soft: var(--mint-soft); }
.ct-navy  { --ct: var(--accent); --ct-soft: var(--accent-soft); }
.ct-coral { --ct: var(--coral-text); --ct-soft: var(--coral-soft); }
.ct-note { margin: 6px 2px 0; font-size: 14px; color: var(--body); }
.contact-map { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 4 / 3.4; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ct-maplink { position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: #FFFFFF; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 12px rgba(23,33,58,0.15); }
.ct-maplink:hover { color: var(--coral); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.site-footer .wrap { padding-top: 26px; padding-bottom: 26px; justify-content: center; }
.site-footer .copy { width: auto; border-top: 0; padding-top: 0; text-align: center; font-size: 13px; color: var(--on-navy); }
.ft-sep { margin: 0 10px; color: var(--on-navy-muted); }
@media (max-width: 640px) { .site-footer .copy { font-size: 12px; line-height: 1.8; } }
.h-ko { display: block; margin-top: 4px; font-size: 0.6em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
h3 .h-ko { font-size: 14px; margin-top: 3px; }

/* Research topics: alternating three-color cards */
.topics-sec .topic { position: relative; display: block; margin-top: 18px; padding: 26px 30px 24px 34px; border: 1px solid var(--tp-line); border-radius: 18px;
  background: linear-gradient(135deg, var(--tp-bg) 0%, #FFFFFF 70%); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.topics-sec .topic:last-child { border-bottom: 1px solid var(--tp-line); }
.topics-sec .topic::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tp); }
.topics-sec .topic::after { content: counter(tp, decimal-leading-zero); counter-increment: tp; position: absolute; right: 24px; top: 14px;
  font-size: 46px; font-weight: 800; letter-spacing: -0.02em; color: var(--tp); opacity: 0.10; line-height: 1; }
.topics-sec .wrap { counter-reset: tp; }
.topics-sec .topic:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 33, 58, 0.08); }
.topics-sec .topic-body h3 { padding-right: 70px; }
.topics-sec .topic-body h3 .h-ko { color: var(--tp); font-weight: 600; }
.topics-sec .tags span { background: #FFFFFF; border-color: var(--tp-line); color: var(--tp); font-weight: 500; }
.topics-sec .topic:nth-of-type(3n+1) { --tp: var(--mint);   --tp-bg: var(--mint-soft);   --tp-line: var(--mint-line); }
.topics-sec .topic:nth-of-type(3n+2) { --tp: var(--accent); --tp-bg: var(--accent-soft); --tp-line: var(--accent-soft-line); }
.topics-sec .topic:nth-of-type(3n)   { --tp: var(--coral-text); --tp-bg: var(--coral-soft); --tp-line: #F6C9B8; }
@media (max-width: 640px) { .topics-sec .topic { padding: 22px 20px 20px 24px; } .topics-sec .topic::after { font-size: 34px; } }
.focus-sec { padding: 44px 0 36px; }
.focus-sec h2 { margin-bottom: 20px; }
.focus-sec .card { padding-top: 22px; padding-bottom: 22px; }
.focus-sec + .topics-sec { padding-top: 44px; }
.since-ko { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--accent); }
.nw-name { font-weight: 700; color: var(--navy); }
.nw-jr { font-style: normal; font-weight: 600; color: var(--coral-text); }

/* ===== Research: tabbed areas ===== */
.research-hero { padding-bottom: 36px; }
.rt-bar { position: sticky; top: var(--hdr-h, 0px); z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.rt-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 12px 0; }
.rt-tab { --c: var(--accent); --cs: var(--accent-soft); display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; font: inherit; text-align: left; cursor: pointer; color: var(--ink); transition: border-color .18s, box-shadow .18s, background .18s, transform .12s; }
.rt-tab:hover { border-color: var(--c); box-shadow: 0 6px 16px rgba(23,33,58,0.08); }
.rt-tab:active { transform: scale(0.98); }
.rt-tab[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #FFFFFF; box-shadow: 0 8px 20px rgba(23,33,58,0.18); }
.rt-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.rt-ic svg { width: 19px; height: 19px; }
.rt-tab[aria-selected="true"] .rt-ic { background: rgba(255,255,255,0.18); color: #FFFFFF; }
.rt-txt { display: flex; flex-direction: column; min-width: 0; }
.rt-txt b { font-size: 13px; line-height: 1.25; }
.rt-txt small { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rt-tab[aria-selected="true"] .rt-txt small { color: rgba(255,255,255,0.8); }
.rt-navy  { --c: var(--accent);     --cs: var(--accent-soft); }
.rt-mint  { --c: var(--mint);       --cs: var(--mint-soft); }
.rt-coral { --c: var(--coral-text); --cs: var(--coral-soft); }

.research-body { padding-top: 44px; }
.rp-panel { --c: var(--accent); --cs: var(--accent-soft); animation: rpIn .35s ease both; }
@keyframes rpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rp-head { display: flex; align-items: center; gap: 16px; }
.rp-ic { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.rp-ic svg { width: 30px; height: 30px; }
.rp-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); color: var(--navy); }
.rp-ko { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--c); }
.rp-lead { margin: 18px 0 14px; max-width: 920px; font-size: 16.5px; line-height: 1.85; color: var(--body); }
.rp-lead b { color: var(--navy); }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chips span { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--cs); color: var(--c); }
.rp-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; padding: 14px; border: 1px solid var(--panel-line); border-radius: 16px; background: var(--panel); }
.rp-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s, transform .12s; }
.rp-toc a span { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--cs); color: var(--c); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.rp-toc a:hover { border-color: var(--c); color: var(--c); transform: translateY(-1px); }

/* block */
.rb { padding: 52px 0 56px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr-h, 0px) + 96px); }
.rp-toc + .rb { border-top: 0; padding-top: 36px; }
.rb-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.rb-num { flex: 0 0 auto; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1.5px var(--c); margin-top: 2px; }
.rb-head h3 { margin: 0; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.3; color: var(--navy); }
.rb-head .h-ko { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--c); }
.rb-body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.rb:nth-of-type(even) .rb-media { order: 2; }
.rb-textonly .rb-body { grid-template-columns: minmax(0, 860px); }

/* media */
.rb-media { display: grid; gap: 18px; min-width: 0; }
.rm { margin: 0; min-width: 0; }
.rm-main { width: 100%; margin-inline: auto; }
.rm-frame { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #0E1526; box-shadow: 0 14px 34px rgba(23,33,58,0.14); cursor: zoom-in; font: inherit; }
.rm-fig .rm-frame { background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(23,33,58,0.07); }
.rm-frame video, .rm-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rm-frame:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.rm-zoom { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(14,21,38,0.62); color: #FFFFFF; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; pointer-events: none; }
.rm-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rm-frame:hover .rm-zoom, .rm-frame:focus-visible .rm-zoom { opacity: 1; transform: none; }
.rm figcaption { margin-top: 9px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.rm-main figcaption { padding-left: 12px; border-left: 3px solid var(--c); color: var(--body); }
.rm-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rm-row.rm-n1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rm-row.rm-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rm-thumb .rm-frame { aspect-ratio: 4 / 3 !important; border-radius: 12px; box-shadow: 0 6px 16px rgba(23,33,58,0.08); }
.rm-thumb.rm-fig .rm-frame { padding: 6px; }
.rm-thumb figcaption { font-size: 12px; line-height: 1.45; margin-top: 7px; }
.rm-video .rm-frame::after { content: ""; position: absolute; left: 10px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #FF4A1C; opacity: 0; transition: opacity .2s; }
.rm-video .rm-frame.is-playing::after { opacity: 0; }

/* text */
.rb-text { min-width: 0; }
.rb-sum { margin: 0 0 20px; font-size: 16px; line-height: 1.85; color: var(--ink); }
.rb-sum b, .rb-rows b { color: var(--navy); }
.rb-text code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--navy); }
.rb-rows { margin: 0 0 20px; display: grid; gap: 14px; }
.rb-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; }
.rb-row dt { margin-top: 3px; padding: 3px 0; border-radius: 7px; background: var(--cs); color: var(--c); font-size: 12px; font-weight: 800; text-align: center; letter-spacing: 0.02em; }
.rb-row dd { margin: 0; font-size: 14.8px; line-height: 1.8; color: var(--body); }
.rb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.rb-stat { padding: 14px 16px 13px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(23,33,58,0.04); position: relative; overflow: hidden; }
.rb-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.rb-stat b { display: block; font-size: 22px; line-height: 1.15; font-weight: 800; color: var(--c); letter-spacing: -0.01em; }
.rb-stat span { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.rb-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; color: var(--body); }
.rb-spec span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--navy); color: #FFFFFF; }
.rb-pubs { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rb-pubs summary { list-style: none; cursor: pointer; padding: 11px 14px; font-size: 14px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.rb-pubs summary::-webkit-details-marker { display: none; }
.rb-pubs summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.rb-pubs[open] summary::after { transform: rotate(-135deg); }
.rb-pubs summary span { font-size: 12px; font-weight: 700; color: var(--c); background: var(--cs); padding: 1px 8px; border-radius: 999px; }
.rp-list { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; gap: 10px; }
.rp-list li { font-size: 13.5px; line-height: 1.5; }
.rp-list a { color: var(--ink); text-decoration: none; }
.rp-list a:hover { color: var(--coral-text); text-decoration: underline; }
.rp-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.rp-jr { font-weight: 600; color: var(--coral-text); }
.rp-sub { font-weight: 600; color: var(--muted); }

/* lightbox */
.rm-lb { width: min(1500px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #0B1120; color: #FFFFFF; overflow: hidden; }
.rm-lb::backdrop { background: rgba(8,12,24,0.82); backdrop-filter: blur(4px); }
.rm-lb-body { display: grid; place-items: center; padding: 18px 18px 0; }
.rm-lb-body img, .rm-lb-body video { display: block; max-width: 100%; max-height: calc(94vh - 110px); width: auto; height: auto; border-radius: 10px; background: #FFFFFF; }
.rm-lb-body video { background: #000000; }
.rm-lb-cap { margin: 0; padding: 14px 22px 18px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); text-align: center; }
.rm-lb-x { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,0.14); color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }
.rm-lb-x:hover { background: rgba(255,255,255,0.26); }

@media (max-width: 1180px) {
  .rt-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .rt-tabs::-webkit-scrollbar { display: none; }
  .rt-tab { flex: 0 0 auto; scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .rb-body { grid-template-columns: 1fr; gap: 26px; }
  .rb:nth-of-type(even) .rb-media { order: 0; }
  .rt-txt small { display: none; }
  .rt-ic { flex-basis: 30px; width: 30px; height: 30px; }
  .rb { padding: 40px 0 44px; }
  .rb-num { font-size: 32px; }
}
@media (max-width: 560px) {
  .rm-row.rm-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-row.rm-n1 .rm-thumb { max-width: 100%; }
  .rp-toc { padding: 10px; gap: 6px; }
  .rp-toc a { font-size: 12.5px; }
  .rb-row { grid-template-columns: 1fr; gap: 6px; }
  .rb-row dt { justify-self: start; padding: 2px 10px; }
}

/* wide blocks: dashboard-style media gets the full width, text flows in two columns below */
.rb-wide .rb-body { grid-template-columns: minmax(0, 1fr); gap: 30px; }
.rb-wide .rb-media { gap: 16px; }
.rb.rb-wide .rb-media { order: 0; }
.rb-wide .rm-main figcaption { max-width: 900px; }
.rb-wide .rm-row .rm-thumb .rm-frame { aspect-ratio: 16 / 10 !important; }
.rb-wide .rb-text { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 44px; align-items: start; }
.rb-wide .rb-sum { grid-column: 1; grid-row: 1; }
.rb-wide .rb-rows { grid-column: 1; grid-row: 2 / span 3; }
.rb-wide .rb-stats { grid-column: 2; grid-row: 1; }
.rb-wide .rb-spec { grid-column: 2; grid-row: 2; }
.rb-wide .rb-pubs { grid-column: 2; grid-row: 3; }
@media (max-width: 900px) { .rb-wide .rb-text { display: block; } }

/* ===== View-mode switch (phones only; injected by view.js) ===== */
.vm-btn { position: fixed; z-index: 90; right: 1em; bottom: 1em; display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.1em .7em .9em; border: 0; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-family: inherit; font-weight: 700; line-height: 1; box-shadow: 0 .4em 1.2em rgba(23,33,58,0.28); cursor: pointer; opacity: .94; transition: transform .25s ease, opacity .25s ease; }
.vm-btn.vm-hide { transform: translateY(160%); opacity: 0; pointer-events: none; }
.vm-btn svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vm-btn:active { transform: scale(0.97); }
.vm-link { display: block; margin: 14px auto 0; padding: 7px 14px; border: 1px solid var(--navy-line); border-radius: 999px; background: transparent; color: var(--on-navy); font: inherit; font-size: 12.5px; cursor: pointer; }

/* ===== Mobile header: compact bar + hamburger menu ===== */
.nav-toggle { display: none; }
.nav-desk { display: none; }
@media (max-width: 760px) {
  .site-header { position: sticky; top: 0; z-index: 40; }
  .site-header .wrap { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 60px; position: relative; }
  .brand { gap: 10px; min-width: 0; }
  .brand-logo { height: 38px; }
  .brand-text { padding-left: 10px; min-width: 0; }
  .brand-text strong { font-size: 15.5px; white-space: nowrap; }
  .brand-text span { font-size: 11px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; cursor: pointer; padding: 0; }
  .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .22s ease, opacity .18s ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); display: grid; gap: 2px; padding: 8px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(23,33,58,0.16); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
  .site-nav a { padding: 13px 14px; border-radius: 10px; font-size: 16px; }
  .site-nav a[aria-current="page"] { background: var(--accent-soft); }
  .nav-desk { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
  .nav-desk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  /* tighter page rhythm */
  .wrap { padding: 0 18px; }
  .section { padding: 44px 0; }
  .hero .wrap { padding-top: 32px; padding-bottom: 36px; }
  .hero .eyebrow, .page-hero .eyebrow { font-size: 11px; letter-spacing: .08em; margin-bottom: 10px; }
  .hero-copy h1, .hero h1 { font-size: 27px; line-height: 1.32; margin-bottom: 14px; }
  .hero p { font-size: 15.5px; line-height: 1.7; }
  .hero .ha-title { font-size: 20px; }
  .hero .hero-about p { font-size: 15px; }
  .page-hero .wrap { padding-top: 32px; padding-bottom: 28px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 15.5px; line-height: 1.75; }
  .research-hero { padding-bottom: 0; }
  .research-body { padding-top: 30px; }
  .rp-lead { font-size: 15.5px; line-height: 1.8; }
  .rb-sum { font-size: 15.5px; }
  .rb-row dd { font-size: 14.5px; }
  .rt-tabs { padding: 10px 0; }
  .rt-tab { padding: 8px 10px; }
}
@media (max-width: 760px) {
  .brand-logo { height: 32px; }
  .brand { gap: 8px; }
  .brand-text { padding-left: 9px; }
  .brand-text strong { font-size: 15px; }
  .brand-text span { font-size: 10.5px; letter-spacing: -0.01em; }
  .member-lead .photo { width: 190px; max-width: 60%; }
  /* research thumbnails: swipeable strip instead of an uneven grid */
  .rm-row.rm-n2, .rm-row.rm-n3, .rb-wide .rm-row.rm-n3 { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-right: -18px; padding-right: 18px; scrollbar-width: none; }
  .rm-row.rm-n2::-webkit-scrollbar, .rm-row.rm-n3::-webkit-scrollbar { display: none; }
  .rm-row.rm-n2 .rm-thumb, .rm-row.rm-n3 .rm-thumb { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ===== Alumni on phones: each row becomes a card (desktop table unchanged) ===== */
@media (max-width: 760px) {
  #alumni .table-box { overflow: visible; border: 0; background: transparent; border-radius: 0; margin-top: 18px; }
  #alumni table { min-width: 0; display: block; font-size: 14.5px; }
  #alumni thead { display: none; }
  #alumni tbody { display: grid; gap: 12px; }
  #alumni tr { display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 6px;
    padding: 16px 16px 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(23,33,58,0.04), 0 8px 22px -14px rgba(23,33,58,0.22); position: relative; }
  #alumni td { display: block; padding: 0; border: 0; }
  #alumni td:first-child { grid-column: 1 / -1; grid-row: 1; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.3; }
  #alumni td:nth-child(2) { display: contents; }
  #alumni .deg-line { grid-column: 1 / -1; grid-row: 2; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
  #alumni .deg-line .deg { color: var(--coral-text); }
  #alumni td.pos { grid-column: 1 / -1; grid-row: 3; margin: 12px 0 12px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-line); }
  #alumni .pos-wrap { gap: 12px; }
  #alumni .pos-en { font-size: 14.5px; line-height: 1.4; }
  #alumni .pos-ko { font-size: 12.5px; }
  #alumni td:nth-child(2) > .thesis-box, #alumni td:nth-child(2) > .chip-off { grid-row: 4; margin: 0; position: static; }
  #alumni td:nth-child(2) > :nth-child(2) { grid-column: 1; }
  #alumni td:nth-child(2) > :nth-child(3) { grid-column: 2; }
  /* popovers open as a full-width sheet inside the card */
  #alumni .thesis-pop, #alumni tr:nth-last-child(-n+2) .thesis-pop { position: absolute; left: 10px; right: 10px; top: auto; bottom: calc(100% - 14px); width: auto; max-height: 60vh; overflow-y: auto; }
  #alumni .thesis-pop::before { display: none; }
}
@media (max-width: 760px) {
  #alumni tr { padding: 14px 14px 12px; }
  #alumni td.pos { margin: 10px 0; padding: 10px; }
  #alumni .logo { flex-basis: 96px; height: 42px; padding: 4px 8px; }
}
@media (max-width: 760px) {
  #alumni .thesis-pop, #alumni tr:nth-last-child(-n+2) .thesis-pop { top: calc(100% - 8px); bottom: auto; z-index: 30; max-height: 55vh; }
  #alumni tr:has(details[open]) { z-index: 25; }
}

/* Home: application keywords under the hero intro */
.hero-apps { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 0; }
.hero-apps::before { content: "Applications"; margin-right: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-apps li { padding: 5px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--navy); background: rgba(255,255,255,.75); border: 1px solid rgba(23,33,58,.12); }
.hero-apps li.ha-main { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
@media (max-width: 760px) { .hero-apps { gap: 6px; } .hero-apps li { font-size: 13px; padding: 4px 11px; } .hero-apps::before { width: 100%; margin-bottom: 2px; } }

/* Home hero: manufacturing AX message */
.hero .eyebrow .ax-tag { display: inline-block; margin-right: 10px; padding: 3px 9px; border-radius: 6px; background: var(--coral); color: #FFFFFF; font-size: 12px; letter-spacing: .04em; vertical-align: 1px; }
.hero-copy h1 .h1-em { color: var(--accent); background: linear-gradient(transparent 62%, rgba(228,87,46,.22) 62%); padding: 0 2px; }
.hero .hero-lead { margin: 0; font-size: 16.5px; line-height: 1.8; color: var(--ink); font-weight: 500; max-width: 640px; }
.hero .hero-lead b { color: var(--navy); font-weight: 700; }
.hero .hero-en { margin: 10px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--body); }
@media (max-width: 760px) {
  .hero .eyebrow .ax-tag { font-size: 11px; padding: 2px 7px; margin-right: 6px; }
  .hero .hero-lead { font-size: 15.5px; line-height: 1.75; }
  .hero .hero-en { font-size: 13.5px; }
}
.hero-copy h1, .hero .hero-lead, .hero-about p, .hero .ha-title { word-break: keep-all; overflow-wrap: break-word; }
.nowrap { white-space: nowrap; }

/* News tags: one colour per category */
.nw-tag { border: 1px solid transparent; }
.nw-tag.t-paper  { color: #2A4A8C; background: #E6ECF7; border-color: #D3DDEF; }   /* 논문 */
.nw-tag.t-degree { color: #B8432A; background: #FCEDE7; border-color: #F6D9CE; }   /* 학위·졸업 */
.nw-tag.t-join   { color: #0B6B69; background: #E3F3F2; border-color: #C9E7E5; }   /* 입학 */
.nw-tag.t-career { color: #6A3FB0; background: #F0EAFB; border-color: #E0D5F6; }   /* 진로 */
.nw-tag.t-award  { color: #8A5A00; background: #FFF3D6; border-color: #F6E3B3; }   /* 수상 */
.nw-tag.t-conf   { color: #1C6E9E; background: #E3F1FA; border-color: #CBE4F3; }   /* 학회 */
.nw-tag.t-news   { color: #4B5568; background: #EEF0F4; border-color: #E0E3EA; }   /* 소식 */

/* Professor card: photo + education on top, career & service share the full card width below */
.member-lead .bio-wide { display: grid; grid-template-columns: 1fr; row-gap: 16px; }
@media (min-width: 761px) {
  .member-lead { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 22px; align-items: start; }
  .member-lead .bio-wide { grid-column: 1 / -1; margin-top: 2px; }
}
.member-lead .bio-wide .bio-label + .timeline { margin-bottom: 0; }
@media (max-width: 900px) { .member-lead .bio-wide { grid-template-columns: 1fr; row-gap: 16px; } }
.member-lead .bio-wide { border-top: 0; padding-top: 0; margin-top: -8px; row-gap: 12px; }
/* sim tab: smaller media column, more room for text */
#panel-sim .rb:not(.rb-wide) .rb-body { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 40px; }
#panel-sim .rb-sum { font-size: 15.5px; line-height: 1.8; }
#panel-sim .rb-row dd { font-size: 14.5px; line-height: 1.75; }
@media (max-width: 900px) { #panel-sim .rb:not(.rb-wide) .rb-body { grid-template-columns: 1fr; } }
#panel-sim .rb-facts-side { margin-top: 8px; padding-top: 22px; border-top: 1px dashed var(--line); }
#panel-sim .rb-facts-side .rb-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
#panel-sim .rb-facts-flow { display: none; }
@media (max-width: 900px) {
  #panel-sim .rb-facts-side { display: none; }
  #panel-sim .rb-facts-flow { display: block; }
}
#panel-sim .rb:not(.rb-wide):nth-of-type(even) .rb-body { grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); }
@media (max-width: 900px) { #panel-sim .rb:not(.rb-wide):nth-of-type(even) .rb-body { grid-template-columns: 1fr; } }
/* numerical methods & equations box */
.rq { margin: 4px 0 18px; padding: 18px 20px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); }
.rq-h { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--c); }
.rq-m { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rq-m span { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); color: var(--navy); }
.rq-eq { padding: 10px 0 4px; border-top: 1px dashed var(--line); }
.rq-eq p { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rq-eq .katex-display { margin: 4px 0 6px; overflow-x: auto; overflow-y: hidden; padding: 2px 0; text-align: left; }
.rq-eq .katex-display > .katex { text-align: left; }
.rq-eq .katex { font-size: 1.02em; color: var(--ink); }
#panel-sim .rb-facts-side .rq { margin-top: 0; }
/* plasma block: two equal videos side by side */
#sim-plasma .rb-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; max-width: 1000px; margin-inline: auto; width: 100%; }
#sim-plasma .rm-main { max-width: none !important; }
#sim-plasma .rm-row { display: block; margin: 0; padding: 0; overflow: visible; }
#sim-plasma .rm-row .rm-thumb { max-width: none; }
#sim-plasma .rm-row .rm-thumb .rm-frame { aspect-ratio: 960 / 1054 !important; border-radius: 16px; box-shadow: 0 14px 34px rgba(23,33,58,0.14); }
#sim-plasma .rm-thumb figcaption { font-size: 13px; line-height: 1.55; margin-top: 9px; padding-left: 12px; border-left: 3px solid var(--c); color: var(--body); }
.rb-wide .rq { grid-column: 2; grid-row: 1; margin-top: 0; }
.rb-wide .rb-spec { grid-row: 2; }
.rb-wide .rb-pubs { grid-row: 3; }
@media (max-width: 600px) { #sim-plasma .rb-media { grid-template-columns: 1fr; } }
#panel-sim .rb-facts-side .rq-eq .katex { font-size: 0.95em; }
/* full-width equations box under each simulation block */
.rb > .rq { margin: 30px 0 0; padding: 20px 24px 12px; }
.rq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 6px; }
.rq-top .rq-h { margin: 0; }
.rq-top .rq-m { margin: 0; }
.rq-eqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); column-gap: 32px; }
.rb > .rq .rq-eq .katex { font-size: 1.05em; }
.rb-wide > .rq { grid-column: auto; grid-row: auto; }
@media (max-width: 600px) { .rb > .rq { padding: 16px 16px 10px; } .rq-eqs { grid-template-columns: minmax(0, 1fr); } }
.rb > .rq .rq-eqs { display: block; }
.rb > .rq .rq-eq { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 18px; align-items: center; padding: 8px 0; }
.rb > .rq .rq-eq p { margin: 0; }
.rb > .rq .rq-eq .katex-display { margin: 0; }
@media (max-width: 600px) { .rb > .rq .rq-eq { display: block; } .rb > .rq .rq-eq p { margin-bottom: 2px; } .rb > .rq .rq-eq .katex { font-size: 0.92em; } }
#sim-plasma .rb-media { max-width: 680px; gap: 18px; }
/* FSI block: two videos side by side at equal height */
#sim-fsi .rb-media { grid-template-columns: minmax(0, 1.778fr) minmax(0, 1.348fr); gap: 22px; align-items: start; }
#sim-fsi .rm-main { max-width: none !important; }
#sim-fsi .rm-row { display: block; margin: 0; padding: 0; overflow: visible; }
#sim-fsi .rm-row .rm-thumb { max-width: none; }
#sim-fsi .rm-row .rm-thumb .rm-frame { aspect-ratio: 1000 / 742 !important; border-radius: 16px; box-shadow: 0 14px 34px rgba(23,33,58,0.14); }
#sim-fsi .rm-thumb figcaption { font-size: 13px; line-height: 1.55; margin-top: 9px; padding-left: 12px; border-left: 3px solid var(--c); color: var(--body); }
@media (max-width: 700px) { #sim-fsi .rb-media { grid-template-columns: 1fr; } }
#panel-sim .rb-wide .rb-spec { grid-row: 1; align-self: start; }
#panel-sim .rb-wide .rb-pubs { grid-row: 2; align-self: start; }
#sim-fsi .rb-pubs { grid-row: 1; }
/* wide sim blocks: full-width text, slightly smaller videos */
#panel-sim .rb-wide .rb-text { display: block; }
#panel-sim .rb-wide .rb-rows { margin-bottom: 18px; }
#sim-fsi .rb-media { max-width: 1000px; margin-inline: auto; width: 100%; }
#sim-plasma .rb-media { max-width: 640px; }
/* magnetic two-phase block: two videos side by side, equal height */
#sim-magnetic .rb-media { grid-template-columns: minmax(0, 778fr) minmax(0, 536fr); gap: 22px; align-items: start; max-width: 720px; margin-inline: auto; width: 100%; }
#sim-magnetic .rm-main { max-width: none !important; }
#sim-magnetic .rm-row { display: block; margin: 0; padding: 0; overflow: visible; }
#sim-magnetic .rm-row .rm-thumb { max-width: none; }
#sim-magnetic .rm-row .rm-thumb .rm-frame { aspect-ratio: 536 / 1076 !important; border-radius: 16px; box-shadow: 0 14px 34px rgba(23,33,58,0.14); padding: 0; }
#sim-magnetic .rm-thumb figcaption { font-size: 13px; line-height: 1.55; margin-top: 9px; padding-left: 12px; border-left: 3px solid var(--c); color: var(--body); }
@media (max-width: 600px) { #sim-magnetic .rb-media { grid-template-columns: minmax(0, 778fr) minmax(0, 536fr); gap: 12px; } }
/* magnetic block v2: small paired videos in the right column */
#panel-sim #sim-magnetic .rb-body { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
#sim-magnetic .rb-media { grid-template-columns: minmax(0, 488fr) minmax(0, 364fr); gap: 12px; max-width: 380px; margin: 0; }
#sim-magnetic .rm-row .rm-thumb .rm-frame { aspect-ratio: 364 / 1052 !important; border-radius: 12px; box-shadow: 0 8px 20px rgba(23,33,58,0.12); }
#sim-magnetic .rm-main .rm-frame { border-radius: 12px; box-shadow: 0 8px 20px rgba(23,33,58,0.12); }
#sim-magnetic figcaption { font-size: 12px !important; line-height: 1.45 !important; }
@media (max-width: 900px) { #panel-sim #sim-magnetic .rb-body { grid-template-columns: 1fr; } #sim-magnetic .rb-media { max-width: 420px; margin-inline: auto; } }
#panel-sim #sim-magnetic .rb-body { grid-template-columns: minmax(0, 1fr) minmax(0, 230px); }
#sim-magnetic .rb-media { grid-template-columns: minmax(0, 1fr); max-width: 230px; }
@media (max-width: 900px) { #sim-magnetic .rb-media { max-width: 260px; } }
#panel-sim #sim-magnetic .rb-body { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }
#sim-magnetic .rb-media { max-width: 170px; margin-inline: auto; }
#sim-magnetic .rb-facts-side { width: 240px; }
@media (max-width: 900px) { #sim-magnetic .rb-media { max-width: 200px; } #sim-magnetic .rb-facts-side { width: auto; } }
#panel-sim #sim-magnetic .rb-body { grid-template-columns: minmax(0, 1fr) minmax(0, 170px); }
#sim-magnetic .rb-facts-side { display: none; }
#sim-magnetic .rb-facts-flow { display: block; }
#sim-fsi .rb-media { max-width: 780px; }
#sim-fsi .rb-media { grid-template-columns: minmax(0, 1.778fr) minmax(0, 1.165fr); }
#sim-fsi .rm-row .rm-thumb .rm-frame { aspect-ratio: 832 / 714 !important; }
/* Home hero v2: copy + video side by side, about card full width below */
.hero-grid { align-items: center; }
.hero-below { margin-top: 32px; }
.hero-below .hero-about { margin-top: 0; }
.hero .hero-below .hero-about p { max-width: none; }
@media (max-width: 960px) { .hero-below { margin-top: 28px; } }
@media (min-width: 761px) { .hero-below .ha-title br { display: none; } }
/* grouped topic filter */
.tf-chips { display: grid; gap: 10px; }
.tf-chips > .tc-all { justify-self: start; }
.tf-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--panel-line); }
.tf-glabel { flex: 0 0 92px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .tf-glabel { flex-basis: 100%; } }
.tf-group .tf-gchip { flex: 0 0 auto; min-width: 118px; justify-content: center; font-weight: 800; letter-spacing: 0.04em; border-color: var(--navy, #1B2A4E); color: var(--navy, #1B2A4E); background: #FFFFFF; }
.tf-group .tf-gchip .tf-all { font-weight: 500; opacity: 0.7; letter-spacing: 0; }
.tf-group .tf-gchip.is-on { background: var(--navy, #1B2A4E); border-color: var(--navy, #1B2A4E); color: #FFFFFF; }
@media (max-width: 640px) { .tf-group .tf-gchip { flex-basis: auto; } }
.tf-group .tf-gchip { border-color: #1B2A4E; color: #1B2A4E; }
.tf-group .tf-gchip.is-on { background: #1B2A4E !important; border-color: #1B2A4E !important; color: #FFFFFF !important; opacity: 1; box-shadow: 0 3px 10px rgba(27,42,78,0.28); }
.tf-group .tf-gchip.is-on .tf-all { opacity: 0.85; }

/* sim-fsi: third column for the tall bouncing-ball video */
#sim-fsi .rm-row .rm-thumb .rm-frame[data-full*="sim-bounce"] { aspect-ratio: 364 / 1052 !important; }
@media (min-width: 701px) {
  #sim-fsi .rb-media { max-width: 1060px !important; grid-template-columns: minmax(0, 1.778fr) minmax(0, 1.165fr) minmax(0, 0.346fr) !important; }
  #sim-fsi .rm-row { display: contents !important; }
}
@media (max-width: 700px) {
  #sim-fsi .rm-row { display: contents !important; }
  #sim-fsi .rm-row .rm-thumb:has(.rm-frame[data-full*="sim-bounce"]) { grid-column: 1 / -1; width: 130px !important; max-width: 130px !important; margin: 4px auto 0 !important; }
}

/* ===== Research: overview strip, process filter, sub-heads ===== */
.research-hero p { max-width: 860px; }
.research-hero p b { color: var(--navy); }
.rov { display: grid; grid-template-columns: minmax(0,1fr) 96px minmax(0,1.25fr) 96px minmax(0,1fr); align-items: stretch; margin-top: 26px; }
.rov-box { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .12s; }
a.rov-box:hover { border-color: var(--c, var(--accent)); box-shadow: 0 8px 20px rgba(23,33,58,0.08); transform: translateY(-1px); }
.rov-box small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--muted)); }
.rov-box b { font-size: 16px; line-height: 1.3; color: var(--navy); }
.rov-box > span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.rov-src { --c: var(--mint); background: var(--mint-soft); border-color: transparent; }
.rov-proc { --c: var(--coral-text); background: var(--coral-soft); border-color: transparent; }
.rov-ai { --c: #FFFFFF; background: linear-gradient(135deg, var(--navy), var(--accent)); border: 0; color: #FFFFFF; box-shadow: 0 10px 24px rgba(23,33,58,0.18); }
.rov-ai small { color: rgba(255,255,255,0.7); }
.rov-ai b { color: #FFFFFF; font-size: 17px; }
.rov-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rov-pills a { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.16); color: #FFFFFF; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s; }
.rov-pills a:hover { background: rgba(255,255,255,0.3); }
.rov-ext { margin-top: 9px; font-size: 12px; color: rgba(255,255,255,0.78); text-decoration: none; }
.rov-ext:hover { color: #FFFFFF; text-decoration: underline; }
.rov-arw { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); padding: 0 6px; }
.rov-arw svg { width: 40px; height: 16px; color: var(--accent); }
.rov-arw span { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.35; }

.rf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 34px; padding: 10px 12px; border: 1px solid var(--panel-line); border-radius: 14px; background: var(--panel); }
.rf-l { font-size: 12.5px; font-weight: 800; color: var(--navy); margin-right: 6px; }
.rf-b { font: inherit; font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.rf-b:hover { border-color: var(--accent); color: var(--accent); }
.rf-b[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.rf-n { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.rb-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.rb-tag { font: inherit; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--muted); cursor: pointer; }
.rb-tag:hover { border-color: var(--c); color: var(--c); }
.rb-tag::before { content: "#"; opacity: .6; margin-right: 1px; }

.rp-sec { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 0; padding: 12px 0 10px; border-bottom: 2px solid var(--c); }
.rp-sec b { font-size: 19px; color: var(--navy); }
.rp-sec span { order: 2; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.rp-sec + .rb { border-top: 0; padding-top: 34px; }
.rp-toc-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.rp-tg > b { display: block; margin: 0 0 7px 2px; font-size: 12px; font-weight: 800; color: var(--c); letter-spacing: .04em; }
.rp-tg > div { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-intro + .rb { border-top: 0; padding-top: 36px; }

.rf-on .rp-lead, .rf-on .rp-chips, .rf-on .rp-toc { display: none; }
.rf-on .rp-panel:not([hidden]) ~ .rp-panel:not([hidden]) { margin-top: 30px; padding-top: 40px; border-top: 2px solid var(--line); }
.rf-on .rp-head .rp-ic { flex-basis: 44px; width: 44px; height: 44px; }
.rf-on .rp-head h2 { font-size: clamp(21px, 2.4vw, 26px); }
.rf-on .rp-intro + .rb, .rf-on .rp-sec + .rb { padding-top: 30px; }

@media (max-width: 900px) {
  .rov { grid-template-columns: 1fr; gap: 0; }
  .rov-arw { flex-direction: row; padding: 6px 0; }
  .rov-arw svg { transform: rotate(90deg); width: 26px; }
  .rp-toc-g { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rov { margin-top: 18px; }
  .rov-box { padding: 13px 15px; }
  .rf { gap: 5px; padding: 9px 10px; margin-bottom: 24px; }
  .rf-l { width: 100%; margin: 0 0 2px; }
  .rf-b { font-size: 12.5px; padding: 4px 11px; }
  .rf-n { width: 100%; margin: 2px 0 0; }
  .rp-sec b { font-size: 17px; }
}
.rp-sec[hidden], .rb[hidden] { display: none; }
@media (max-width: 900px) { .rov-arw br { display: none; } }

/* ===== Research tabs: clearer button affordance ===== */
.rt-hint { display: flex; align-items: center; gap: 7px; margin: 0; padding: 26px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.rt-hint svg { width: 16px; height: 16px; color: var(--accent); animation: rt-bob 1.8s ease-in-out infinite; }
.rt-hint span { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }
@keyframes rt-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .rt-hint svg { animation: none; } }
.rt-tabs { padding: 12px 0 16px; }
.rt-tab { position: relative; padding-right: 26px; border: 1px solid #CDD5E1; background: linear-gradient(180deg, #FFFFFF 0%, #F3F6FA 100%); box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 2px 0 #DDE3EC, 0 4px 10px rgba(23,33,58,0.06); }
.rt-tab:hover { transform: translateY(-2px); background: #FFFFFF; border-color: var(--c); box-shadow: 0 2px 0 var(--cs), 0 10px 22px rgba(23,33,58,0.12); }
.rt-tab:active { transform: translateY(1px); box-shadow: 0 1px 0 #DDE3EC, 0 2px 6px rgba(23,33,58,0.06); }
.rt-tab:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.rt-chev { position: absolute; right: 8px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: #9AA6B8; transition: transform .18s, color .18s; }
.rt-chev svg { display: block; width: 100%; height: 100%; }
.rt-tab:hover .rt-chev { color: var(--c); transform: translateX(2px); }
.rt-tab[aria-selected="true"] { box-shadow: 0 8px 20px rgba(23,33,58,0.2); transform: none; }
.rt-tab[aria-selected="true"] .rt-chev { color: #FFFFFF; transform: rotate(90deg); }
.rt-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 13px; height: 13px; margin-left: -6.5px; background: var(--c); transform: rotate(45deg); border-radius: 2px; }
@media (max-width: 900px) {
  .rt-tab[aria-selected="true"]::after { display: none; }
  .rt-tabs { padding: 10px 0 12px; }
}
@media (max-width: 640px) { .rt-hint { padding-top: 18px; font-size: 13px; } .rt-hint span { display: none; } }

/* ===== Text-first block with photo gallery below ===== */
.rb-below .rb-gal { display: grid; gap: 18px; margin-top: 30px; }
.rb-galrow { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.rm-gal { min-width: 0; }
.rm-gal .rm-frame { border-radius: 14px; }
.rm-gal.rm-fig .rm-frame { padding: 0; }
.rm-gal figcaption { font-size: 12.5px; line-height: 1.5; margin-top: 8px; color: var(--muted); }
@media (max-width: 640px) {
  .rb-galrow { flex-direction: column; gap: 14px; }
  .rm-gal { flex: none !important; width: 100%; max-width: none !important; }
}
/* balanced two-column text (text-first and wide blocks) */
.rb-wide .rb-text2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px; align-items: start; }
.rb-wide .rb-text2 .rb-sum { grid-column: 1 / -1; grid-row: auto; max-width: none; }
.rb-wide .rb-text2 .rb-col { min-width: 0; }
.rb-wide .rb-text2 .rb-rows, .rb-wide .rb-text2 .rb-spec, .rb-wide .rb-text2 .rb-pubs, .rb-wide .rb-text2 .rq { grid-column: auto; grid-row: auto; }
@media (max-width: 900px) { .rb-wide .rb-text2 { display: block; } }

/* text wraps around a floated figure */
.rb-wrap .rb-body { display: flow-root; }
.rb-wrap .rb-media { float: left; width: 47%; margin: 4px 44px 14px 0; display: block; }
.rb.rb-wrap:nth-of-type(even) .rb-media { float: right; margin: 4px 0 14px 44px; }
.rb-wrap .rb-text { display: block; }
.rb-wrap .rb-rows { display: block; }
.rb-wrap .rb-row { display: block; margin-bottom: 14px; }
.rb-wrap .rb-row dt { display: inline-block; padding: 2px 10px; margin: 0 0 6px; }
.rb-wrap .rb-row dd { display: block; }
.rb-wrap .rb-spec, .rb-wrap .rb-pubs, .rb-wrap .rq { clear: both; }
#panel-sim .rb-wrap .rb-facts-flow { display: block; clear: both; }
@media (max-width: 900px) { .rb-wrap .rb-media, .rb.rb-wrap:nth-of-type(even) .rb-media { float: none; width: 100%; margin: 0 0 22px; } }
#panel-sim .rb-wide .rb-text2 { display: grid; }
#panel-sim .rb-wide .rb-text2 .rb-spec, #panel-sim .rb-wide .rb-text2 .rb-pubs { grid-row: auto; }
@media (max-width: 900px) { #panel-sim .rb-wide .rb-text2 { display: block; } }
@media (min-width: 901px) { .rb .rb-body[style*="--gc"] { grid-template-columns: var(--gc) !important; } }
