/* YAS Lab — design direction A "Clinical Precision" */

/* Fonts are served from this site (IBM Plex, Latin subset). Chinese uses the visitor's system font. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/plex-sans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/plex-sans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/plex-sans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/plex-sans-Bold.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/plex-mono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/plex-mono-Medium.woff2') format('woff2'); }

:root {
  --navy: #03284b;
  --navy-deep: #021c36;
  --navy-line: #2b5680;
  --cyan: #2ec4d9;       /* only on dark backgrounds */
  --teal: #0b6e80;       /* links and labels on light backgrounds */
  --ink: #10233a;
  --ink-2: #3c4f63;
  --ink-3: #4a5d70;
  --mist: #f1f6fa;
  --line: #dde6ee;
  --on-navy: #d3e1ee;
  --on-navy-2: #a9c3d9;
  --sans: 'IBM Plex Sans', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1200px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; }
.lang-zh { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 4px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-accent { background: var(--cyan); color: var(--navy); }
.btn-accent:hover { background: #59d3e3; color: var(--navy); }
.btn-ghost-dark { border-color: #5b7fa3; color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0a3a66; color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: #fff; border-bottom: 1px solid #12406a; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand:hover { color: #fff; }
.menu > summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #5b7fa3; border-radius: 4px; font-weight: 500; }
.menu > summary::-webkit-details-marker { display: none; }
.menu nav ul { list-style: none; margin: 0; padding: 0; }
.menu nav a { color: #fff; text-decoration: none; }
.menu nav ul a:not(.btn) { display: inline-block; padding: 10px 0; }
.menu nav ul a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--cyan); }
.lang { display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--on-navy-2); }
.lang a { color: var(--on-navy-2) !important; padding: 10px 2px; }
.lang a[aria-current="true"] { color: #fff !important; }

@media (max-width: 959px) {
  .site-header { position: relative; }
  .header-inner { padding-top: 16px; padding-bottom: 16px; min-height: 0; }
  .menu > summary { position: absolute; right: 24px; top: 16px; color: #fff; }
  .menu[open] { flex-basis: 100%; }
  .menu nav { padding: 8px 0 12px; }
  .menu nav ul li { border-top: 1px solid #12406a; }
  .menu nav ul a:not(.btn) { display: block; padding: 14px 0; }
  .menu nav .btn { margin: 14px 0 6px; }
  .lang { padding-top: 6px; }
}
@media (min-width: 960px) {
  .menu > summary { display: none; }
  .menu nav { display: flex; align-items: center; gap: 28px; }
  .menu nav ul { display: flex; align-items: center; gap: 28px; font-size: 15px; }
}

/* ---------- shared section bits ---------- */
.section { padding: 96px 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.section-navy .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--cyan); }
.lang-zh .eyebrow { letter-spacing: 0.08em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 44px; }
.section-title { font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
/* Lab photo on the right, toned navy/teal and cut on a diagonal */
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; background: var(--teal); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.85; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: multiply; opacity: 0.55; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; align-items: flex-end; min-height: 620px; padding-top: 88px; padding-bottom: 104px; }
.hero-text { flex: 0 1 auto; max-width: min(620px, calc(54vw - 96px)); min-width: 0; align-self: center; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
.hero h1, .section-title, .join-inner h2 { text-wrap: balance; }
.lang-zh .hero h1 { letter-spacing: 0; line-height: 1.2; }
.hero-lead { margin-top: 24px; max-width: 560px; font-size: 18px; line-height: 1.65; color: var(--on-navy); }
.hero .btn-row { margin-top: 36px; }
@media (max-width: 1199px) {
  .hero-inner { padding-bottom: 56px; }
}
@media (max-width: 959px) {
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-media { position: relative; width: 100%; height: 280px; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); margin-top: -40px; }
  .hero-inner { min-height: 0; padding-bottom: 72px; gap: 40px; }
  .hero-text { max-width: none; flex-basis: 100%; }
}

/* ---------- research ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 300px; min-width: 0; border-top: 3px solid var(--navy); padding-top: 24px; }
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; margin: 0 0 20px; border-radius: 4px; }
.card-label { font-family: var(--mono); font-size: 13px; color: var(--teal); }
.card h3 { margin: 10px 0 12px; font-size: 22px; font-weight: 600; color: var(--navy); }
.card p { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.note-bar { margin-top: 48px; padding: 20px 24px; background: var(--mist); border-radius: var(--radius); font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- publications ---------- */
.pub-list { background: #fff; border-radius: var(--radius); }
.pub { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 28px; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub-date { flex: 0 0 96px; font-family: var(--mono); font-size: 14px; color: var(--teal); }
.pub-body { flex: 1 1 480px; min-width: 0; }
.pub-title { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.pub-cite { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-3); overflow-wrap: anywhere; }
.pub-links { display: flex; gap: 16px; align-self: center; font-size: 14px; font-weight: 600; }
.pub-links a { display: inline-block; padding: 10px 0; }
.pub-links a::after { content: ' \2197'; font-weight: 400; }

/* ---------- PI ---------- */
.pi { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.portrait { flex: 1 1 320px; min-width: 0; max-width: 440px; aspect-ratio: 4 / 5; background: var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-family: var(--mono); font-size: 13px; text-align: center; padding: 16px; }
.pi-text { flex: 999 1 480px; min-width: 0; }
.pi-role { margin: 8px 0 24px; font-size: 17px; color: var(--ink-3); }
.pi-bio { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.pi .btn-row { margin-top: 32px; }

/* ---------- photos ---------- */
.photos { display: flex; flex-wrap: wrap; gap: 24px; }
.photo { flex: 1 1 300px; min-width: 0; margin: 0; }
.photo-frame { aspect-ratio: 4 / 3; background: #cad7e3; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--ink-3); overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.photo time { font-family: var(--mono); color: var(--teal); }

/* ---------- join band ---------- */
.join-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 88px; padding-bottom: 88px; }
.join-inner > div { flex: 999 1 520px; min-width: 0; }
.join-inner h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.15; }
.join-inner p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--on-navy); }
.join-inner .btn { font-size: 17px; padding: 14px 26px; }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--navy); color: #fff; }
.page-head .wrap { padding-top: 72px; padding-bottom: 64px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.02em; }
.page-head p.lead { margin-top: 16px; max-width: 680px; font-size: 18px; color: var(--on-navy); }

/* ---------- publications page ---------- */
.pub-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 40px; }
.pub-filter[hidden], .pub-filter [hidden], .pub[hidden], .year-group[hidden], .pf-none[hidden] { display: none; }
.pub-filter label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pub-filter select, .pub-filter input { font: inherit; font-family: var(--sans, inherit); font-size: 16px; letter-spacing: 0; text-transform: none; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--navy); }
.pub-filter select { min-width: 160px; }
.pub-filter input { width: 100%; }
.pub-filter select:focus-visible, .pub-filter input:focus-visible, .pf-clear:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pf-search { flex: 1 1 280px; }
.pf-clear { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--navy); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pf-clear:hover { border-color: var(--navy); }
.pf-count { flex-basis: 100%; margin: 0; min-height: 1.4em; font-family: var(--mono); font-size: 14px; color: var(--teal); }
.pf-none { padding: 40px 0; color: var(--ink-3); }
.year-group { margin-bottom: 56px; scroll-margin-top: 24px; }
.year-group h2 { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--navy); margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; }
.year-group h2 small { font-size: 14px; color: var(--ink-3); }
.year-group .pub-list { border: 1px solid var(--line); }

/* ---------- real images in home sections ---------- */
.portrait.has-img { padding: 0; background: none; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
a.photo { text-decoration: none; color: inherit; }
a.photo:hover figcaption { color: var(--navy); text-decoration: underline; }
.photo-frame img { transition: transform .3s ease; }
a.photo:hover .photo-frame img { transform: scale(1.03); }

/* ---------- collaborators ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.logos li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 20px; min-height: 112px; }
.logos img { max-height: 64px; width: auto; object-fit: contain; }
@media (max-width: 959px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos li { min-height: 92px; padding: 14px; } .logos img { max-height: 48px; } }

/* ---------- photos page ---------- */
.album { margin-bottom: 72px; scroll-margin-top: 24px; }
.album-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.album-head h2 { font-size: 24px; font-weight: 600; color: var(--navy); }
.album-head time { font-family: var(--mono); font-size: 14px; color: var(--teal); }
.album-head .count { font-size: 14px; color: var(--ink-3); margin-left: auto; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
/* Lightbox */
html.lb-open { overflow: hidden; }
.lightbox { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; background: rgba(3, 21, 38, .94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(3, 21, 38, .94); }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1200px, calc(100vw - 160px)); max-height: 100%; padding: 16px 0; }
.lb-fig img { display: block; max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 4px; background: #0a3459; }
.lb-fig figcaption { font-family: var(--mono); font-size: 14px; color: var(--on-navy-2, #d3e1ee); text-align: center; }
.lb-close, .lb-nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(3,40,75,.7); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: #fff; color: var(--navy); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid #2ec4d9; outline-offset: 2px; }
.lb-close { top: 16px; right: 16px; z-index: 2; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lightbox.single .lb-nav { display: none; }
@media (max-width: 640px) {
  .lb-fig { max-width: 100vw; }
  .lb-nav { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-fig img { max-height: calc(100dvh - 150px); }
  .lb-fig figcaption { padding: 0 72px; }
}
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* ---------- people page ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #5b7fa3; border-radius: 4px; color: #fff; text-decoration: none; font-size: 15px; }
.subnav a:hover { border-color: #fff; color: #fff; }
.pi-profile { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.pi-profile .portrait { flex: 0 1 360px; }
.pi-profile .pi-text { flex: 999 1 480px; }
.pi-contact { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.pi-contact span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: inline-block; min-width: 72px; }
.pi-bio p + p { margin-top: 14px; }
.cv { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.cv-block h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); padding-bottom: 12px; border-bottom: 3px solid var(--navy); margin-bottom: 4px; }
.lang-zh .cv-block h3 { font-family: var(--sans); letter-spacing: .06em; font-size: 15px; font-weight: 600; }
.cv-block.wide { grid-column: 1 / -1; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.cv-list .when { flex: 0 0 132px; font-family: var(--mono); font-size: 13px; color: var(--teal); padding-top: 2px; }
.cv-list .what { flex: 1 1 280px; min-width: 0; }
.cv-list .what strong { color: var(--navy); font-weight: 600; }
.cv-list .meta { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.cv-block p.plain { padding-top: 14px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.cv details > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.cv details > summary::-webkit-details-marker { display: none; }
.cv details > summary h3 { flex: 1; margin-bottom: 0; }
.cv details > summary::after { content: '+'; font-family: var(--mono); font-size: 20px; color: var(--navy); margin-left: 12px; padding-bottom: 12px; }
.cv details[open] > summary::after { content: '−'; }
@media (max-width: 800px) { .cv { grid-template-columns: minmax(0, 1fr); gap: 40px; } .cv-list .when { flex-basis: 100%; } }

.group { margin-bottom: 64px; }
.group h3 { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 24px; display: flex; align-items: baseline; gap: 12px; }
.group h3 small { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--ink-3); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.person-photo { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.person-photo:has(img) { border: 0; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo .initials { font-family: var(--mono); font-size: 28px; color: var(--teal); letter-spacing: .05em; }
.person-name { font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.person-name .zh { font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.person-role { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.person-focus { margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--teal); }
.people.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.people.compact li { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 959px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } .people.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people, .people.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

.alumni-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.alumni-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.alumni-filter[hidden] { display: none; }
.alumni-filter button { font: inherit; font-size: 15px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid #c9d8e5; background: #fff; color: var(--ink); cursor: pointer; }
.alumni-filter button:hover { border-color: var(--navy); }
.alumni-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.alumni-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.alumni-list li { display: grid; grid-template-columns: 72px minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.7fr); gap: 24px; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.alumni-list li:last-child { border-bottom: 0; }
.alumni-list li[hidden] { display: none; }
.alum-photo { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; background: var(--mist); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 20px; color: var(--teal); }
.alum-photo img { width: 100%; height: 100%; object-fit: cover; }
.alum-name { font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.alum-name .zh { font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.alum-pos { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.alum-period { font-family: var(--mono); font-size: 14px; color: var(--teal); white-space: nowrap; }
.alum-now { display: flex; align-items: baseline; gap: 12px; font-size: 16px; font-weight: 500; color: var(--ink); }
.alum-now .tag { flex-shrink: 0; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; }
@media (max-width: 760px) {
  .alumni-list li { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: 16px 18px; }
  .alum-photo { width: 56px; height: 56px; font-size: 16px; grid-row: span 3; }
  .alum-period { font-size: 13px; }
  .alum-now { font-size: 15px; }
}

/* ---------- research / join ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split-main { flex: 999 1 520px; min-width: 0; }
.split-side { flex: 1 1 320px; min-width: 0; }
.split.with-figure .split-main { flex: 1 1 400px; }
.split.with-figure .split-side { flex: 1 1 440px; }
.split.with-figure .big-stat { margin-top: 36px; }
.problem-img, .area-img, .card-img { mix-blend-mode: multiply; } /* blends the images' off-white background into the white page */
.problem-img { display: block; width: 100%; height: auto; aspect-ratio: 840 / 640; border-radius: var(--radius); }
.body-text { margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 720px; }
.platform { border-left: 4px solid var(--teal); padding-left: 28px; }
@media (max-width: 560px) { .platform { padding-left: 18px; } }
.body-text.on-navy { color: var(--on-navy); }
.section-title.on-navy { color: #fff; }
.big-stat { border-left: 3px solid var(--navy); padding: 8px 0 8px 28px; }
.big-stat span { display: block; white-space: nowrap; font-size: clamp(48px, 6vw, 72px); font-weight: 600; line-height: 1; color: var(--navy); letter-spacing: -0.02em; }
.big-stat p { margin-top: 12px; font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.lang-zh .big-stat p { font-family: var(--sans); font-size: 15px; }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.areas li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.areas .area-img { display: block; width: 100%; height: auto; aspect-ratio: 440 / 270; margin: -4px 0 16px; border-radius: 4px; }
.section:not(.section-mist) .areas li { background: #fff; border-color: var(--line); }
.areas h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.areas p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 959px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .areas { grid-template-columns: minmax(0, 1fr); } }
.link-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.link-card { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); }
.link-card strong { color: var(--navy); font-size: 18px; font-weight: 600; }
.link-card span { font-size: 15px; }
.link-card:hover { border-color: var(--navy); color: var(--ink-2); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.check-list li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.teep { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.teep-main { flex: 1 1 360px; min-width: 0; }
.teep-badge { display: inline-block; margin-top: 16px; padding: 6px 12px; border: 1px solid var(--teal); border-radius: 999px; font-family: var(--mono); font-size: 13px; color: var(--teal); }
.lang-zh .teep-badge { font-family: var(--sans); }
.teep-contact { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.teep-contact a { overflow-wrap: anywhere; }
.teep-facts { flex: 1 1 420px; min-width: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.teep-facts div { padding: 20px 24px; }
.teep-facts div + div { border-top: 1px solid var(--line); }
.teep-facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.lang-zh .teep-facts dt { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; }
.teep-facts dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.apply-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px 32px; }
.apply-box .eyebrow { color: var(--cyan); }
.apply-box h2 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.apply-box p { color: var(--on-navy); font-size: 16px; }
.apply-box ol { margin: 14px 0 28px; padding-left: 20px; color: var(--on-navy); font-size: 16px; line-height: 1.6; }
.apply-box ol li + li { margin-top: 8px; }
.apply-box .apply-alt { margin-top: 16px; font-size: 14px; color: var(--on-navy-2); }
.apply-box .apply-alt a { color: #fff; overflow-wrap: anywhere; }

/* ---------- articles ---------- */
.wrap.narrow { max-width: 820px; }
.article-list { display: flex; flex-direction: column; }
.article-card { padding: 32px 0; border-bottom: 1px solid var(--line); }
.article-card:first-child { padding-top: 0; }
.article-meta { font-family: var(--mono); font-size: 13px; color: var(--teal); }
.article-card h2 { margin: 10px 0 12px; font-size: clamp(22px, 3vw, 28px); font-weight: 600; }
.article-card h2 a { color: var(--navy); text-decoration: none; }
.article-card h2 a:hover { text-decoration: underline; }
.article-summary { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 760px; margin-bottom: 14px; }
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); font-size: 12px; }
.article-head .back { display: inline-block; color: var(--on-navy-2); text-decoration: none; font-size: 15px; margin-bottom: 28px; padding: 10px 0; }
.article-head .back:hover { color: #fff; }
.article-head h1 { line-height: 1.15; }
.article-date { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--on-navy-2); }
.prose { font-size: 18px; line-height: 1.75; color: var(--ink); }
.lang-zh .prose { line-height: 1.9; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: 28px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.prose h3 { margin-top: 36px; font-size: 21px; font-weight: 600; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 10px; }
.prose strong { color: var(--navy); }
.prose figure { margin: 36px 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); color: var(--ink-2); }
.related { margin-top: 64px; padding-top: 28px; border-top: 3px solid var(--navy); }
.related h2 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.lang-zh .related h2 { font-family: var(--sans); letter-spacing: .06em; font-size: 15px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related a { display: inline-block; padding: 8px 0; font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ---------- coming soon ---------- */
.soon { padding: 120px 0 140px; }
.soon h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; color: var(--navy); }
.soon p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 560px; }
.soon .btn { margin-top: 32px; }
.soon .btn-row .btn { margin-top: 0; }

/* ---------- members area: links ---------- */

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-2); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; line-height: 1.9; }
.footer-col { flex: 1 1 240px; min-width: 0; }
.footer-address { flex-basis: 320px; line-height: 1.7; }
.footer-address address { font-style: normal; }
.footer-name { color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.site-footer a { color: #fff; }
.site-footer a.muted { color: var(--on-navy-2); }
.site-footer a:hover { color: var(--cyan); }
.footer-copy { flex: 0 1 200px; align-self: flex-end; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero-inner { padding-top: 56px; gap: 40px; }
  .hero-lead { font-size: 17px; }
  .hero-media { height: 220px; }
  .portrait { max-width: 240px; }
  .pub { padding: 22px 18px; }
  .pub-date { flex-basis: 100%; }
  .join-inner { padding-top: 64px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Join us: contact */
.contact-list { margin: 0; }
.contact-list > div { padding: 18px 0; border-top: 1px solid var(--line, #d5dde6); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line, #d5dde6); }
.contact-list dt { font-family: var(--mono, 'IBM Plex Mono', monospace); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.contact-list dd { margin: 0; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.contact-list address { font-style: normal; }
.contact-list a { color: var(--navy); }
.contact-map { display: inline-block; margin-top: 8px; padding: 10px 0; min-height: 44px; font-weight: 500; }
.contact-list a[href^="mailto"], .contact-list a[href^="tel"] { display: inline-block; padding: 8px 0; min-height: 44px; }

.map-box { margin-top: 32px; max-width: 640px; aspect-ratio: 4 / 3; border-radius: var(--radius); background-color: var(--mist); background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(11,110,128,.10) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(11,110,128,.10) 39px 40px); border: 1px solid #d5dde6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; overflow: hidden; }
.map-box .map-pin { color: var(--teal); }
.map-box .map-addr { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.6; color: var(--navy); }
.map-box .map-note { margin: 0; font-size: 13px; color: #4a5a6b; }
.map-box .map-load { min-height: 44px; }
.map-box.is-live { padding: 0; display: block; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-box [hidden] { display: none !important; }
.map-box .map-pin { flex-shrink: 0; }
.map-box .map-load { font-family: inherit; font-size: 16px; cursor: pointer; border: 0; }

.map-box { position: relative; padding: 0; justify-content: flex-start; background: #e8eef3; }
.map-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-box::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,40,75,.55), rgba(3,40,75,0) 55%); pointer-events: none; }
.map-box.is-live::after { display: none; }
.map-cta { position: relative; z-index: 1; margin-top: 7%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; }
.map-box .map-note { color: #fff; text-shadow: 0 1px 3px rgba(3,40,75,.8); }
.map-cta { background: rgba(3,40,75,.88); border-radius: var(--radius); padding: 16px 20px; max-width: calc(100% - 32px); }
.map-box .map-note { text-shadow: none; color: var(--on-navy, #fff); text-align: center; font-size: 13px; }

/* map: whole picture is the button */
.map-box::after { display: none; }
.map-box .map-load { position: absolute; inset: 0; z-index: 1; width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: flex-start; justify-content: center; font-family: inherit; }
.map-box .map-load[hidden] { display: none !important; }
.map-box .map-chip { margin-top: 7%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 18px; max-width: calc(100% - 32px); background: rgba(3,40,75,.9); color: #fff; border-radius: var(--radius); transition: background .15s; }
.map-box .map-chip strong { font-size: 16px; font-weight: 600; }
.map-box .map-chip small { font-size: 12px; color: var(--on-navy, #cfe0ee); }
.map-box .map-load:hover .map-chip, .map-box .map-load:focus-visible .map-chip { background: var(--navy); }
.map-box .map-load:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }

/* LinkedIn icon */
.li-link { display: inline-flex; align-items: center; gap: 8px; }
.li-icon { flex-shrink: 0; --li-bg: #fff; }
.li-icon circle, .li-icon path, .li-icon rect + circle ~ rect { fill: var(--li-bg); }
.site-footer .li-icon { --li-bg: var(--navy); }

/* Research: cancer tags and per-target references */
.cancer-tags { margin-top: 28px; }
.cancer-tags-label, .card-refs-label { font-family: var(--mono, 'IBM Plex Mono', monospace); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.cancer-tags ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cancer-tags li { padding: 6px 12px; border: 1px solid #c9d6e2; border-radius: 999px; font-size: 14px; color: var(--navy); background: #fff; }
.card-refs { margin-top: 18px; padding-top: 14px; border-top: 1px solid #dde5ec; }
.card-refs ul { list-style: none; margin: 0; padding: 0; }
.card-refs li { margin: 0; }
.card-refs a { display: block; padding: 8px 0; min-height: 44px; box-sizing: border-box; font-size: 15px; line-height: 1.5; color: var(--navy); text-decoration: none; }
.card-refs a strong { font-weight: 600; color: var(--teal); }
.card-refs a:hover { text-decoration: underline; }
.page-head .cancer-tags-label { color: var(--cyan); }

/* TEEP: full-width Taipei skyline background */
.section-teep { position: relative; color: #fff; background-color: var(--navy);
  background-image: linear-gradient(90deg, rgba(3,40,75,.88) 0%, rgba(3,40,75,.6) 42%, rgba(3,40,75,.12) 100%), url('/images/join/teep-taipei.webp');
  background-size: cover; background-position: 40% 55%; }
@media (max-width: 959px) {
  .section-teep { background-image: linear-gradient(180deg, rgba(3,40,75,.72), rgba(3,40,75,.86) 60%), url('/images/join/teep-taipei-960.webp'); background-position: 50% 30%; }
}
.section-teep .eyebrow { color: var(--cyan); }
.section-teep .section-title, .section-teep h2 { color: #fff; }
.section-teep .teep-main p { color: rgba(255,255,255,.88); }
.section-teep .teep-badge { color: var(--cyan); border-color: var(--cyan); }
.section-teep .teep-contact a { color: #fff; }

/* Join us: degree programmes */
.degree-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 32px; }
.degree-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--radius); padding: 24px; }
.degree-card h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.degree-card ul { list-style: none; margin: 0; padding: 0; }
.degree-card li { padding: 10px 0; font-size: 17px; line-height: 1.5; color: var(--navy); }
.degree-card li + li { border-top: 1px solid var(--line); }
/* degree programmes: plain editorial columns, no card boxes */
.degree-grid { gap: 8px 64px; margin-top: 40px; }
.degree-card { background: none; border: 0; border-top: 1px solid var(--navy); border-radius: 0; padding: 16px 0 0; }
.degree-card li { padding: 12px 0; font-size: 18px; }
.degree-card li + li { border-top: 1px solid var(--line); }

.apply-box .apply-note { margin: 4px 0 24px; padding: 12px 16px; border-left: 3px solid var(--cyan); background: rgba(46,196,217,.12); color: #fff; font-size: 15px; line-height: 1.6; }
.apply-box .apply-note strong { font-weight: 600; }
.degree-card a { color: var(--navy); text-decoration-color: var(--teal); text-underline-offset: 3px; }
.degree-card a:hover { color: var(--teal); }

/* Join us: roles in two columns, wide apply box below */
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); column-gap: 64px; }
.apply-wide { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; padding: 44px 48px; align-items: center; }
.apply-wide ol { margin-bottom: 0; }
.apply-act .apply-note { margin: 0 0 24px; }
@media (max-width: 859px) {
  .apply-wide { grid-template-columns: 1fr; padding: 32px 24px; }
}
