*{box-sizing:border-box}body{margin:0;color:#152e4a;font:17px/1.6 system-ui,sans-serif}header,section,footer{padding:32px max(6vw,calc((100vw - 1160px)/2))}header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border-top:5px solid #174b83}header strong{font: bold 28px Georgia}nav{display:flex;gap:20px;flex-wrap:wrap}a{color:#154e83}nav a{text-decoration:none;font-size:15px}a:hover{text-decoration:underline}.hero{min-height:440px;display:grid;align-content:end;background:linear-gradient(0deg,#061e39ee,transparent),url("assets/campus-wide-v2.webp") center/cover;color:white;padding-bottom:40px}h1,h2,h3{font:normal 46px/1.1 Georgia,serif;margin:12px 0}h1{font-size:clamp(44px,7vw,88px)}h3{font-size:25px}section{padding-top:50px;padding-bottom:50px}section:nth-of-type(odd):not(.hero){background:#f0f4f7}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:25px}figure{margin:0}figure img{width:100%;height:230px;object-fit:contain;background:#f5f6f7}li{padding:14px 0;border-bottom:1px solid #ccd5dd}footer{background:#15375a;color:white}
header strong a{color:inherit;text-decoration:none}nav [aria-current]{border-bottom:2px solid #174b83}
h1.page-title{font-size:clamp(42px,6vw,72px);margin-bottom:36px}article.topic{padding:24px 0;border-top:1px solid #bdcbd6}
article.topic h2,section h2{font-size:34px}.topic p{max-width:75ch}.paper{padding:20px 0;border-bottom:1px solid #ccd5dd}.paper h3{font-size:22px}.paper p{margin:5px 0}.authors{color:#435569;font-size:15px}nav{row-gap:8px}footer{margin-top:auto}body{min-height:100vh;display:flex;flex-direction:column}
body,header strong,h1,h2,h3{font-family:Arial,Helvetica,sans-serif}
h1,h2,h3{letter-spacing:-.035em;font-weight:600}h1{font-size:clamp(42px,6vw,78px)}h2{margin:44px 0 18px}.profile,.research-row,.intro,.paper,.news-item{display:flex;align-items:flex-start;gap:clamp(20px,4vw,56px)}.profile>img{width:min(29%,270px);height:auto}.profile h2{margin-top:0}.people,.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.people img,.gallery img{width:100%;aspect-ratio:1;object-fit:contain}.toc{width:230px;height:145px;object-fit:contain}.research-row,.intro{align-items:center}.research-row img,.intro img{width:42%;object-fit:contain}.research-row>div,.intro>div{flex:1}.research-row{padding:32px 0;border-top:1px solid #d1dce6}.refs{font-size:.93rem;line-height:1.6}.news-item img{width:88px;height:88px;object-fit:cover;border-radius:50%}.hero{min-height:52vh}.hero h1{font-size:clamp(52px,7.5vw,100px)}.people:empty{min-height:12px;border-top:1px solid #d1dce6}footer a{color:white}section{background:white}
@media(max-width:720px){.profile,.research-row,.intro,.paper{flex-direction:column}.research-row img,.intro img{width:100%}.profile>img{width:160px}.people,.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.news-item img{width:60px;height:60px}.toc{max-width:100%}}

/* Shared content rails for full browser windows and the preview panel. */
:root{--rail:max(20px,calc((100% - 1120px)/2),4%);--space:clamp(18px,3vw,40px)}
header,main section,footer{padding-inline:var(--rail)}
header{gap:12px 28px}header strong,nav a{white-space:nowrap}nav{gap:6px clamp(12px,2vw,23px)}
.hero{min-height:clamp(300px,38vw,475px)}
.intro,.research-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:var(--space)}
.research-row img,.intro img{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:contain;background:white;border-radius:8px}
.research-row h2{margin-top:0}.paper>div,.profile>div{min-width:0}.paper h3{overflow-wrap:anywhere}
@media(min-width:601px) and (max-width:720px){.profile,.paper{flex-direction:row}.toc{width:170px}}
@media(max-width:600px){header{align-items:flex-start;flex-direction:column}.intro,.research-row{grid-template-columns:minmax(0,1fr)}.intro img,.research-row img{width:100%;max-width:520px;justify-self:center}.hero h1{font-size:51px}.paper{gap:12px}.research-row h2{font-size:29px}nav{width:100%}.hero{min-height:300px}}

.section-title{font-size:clamp(28px,3vw,40px)}

nav a{font-size:clamp(17px,1.45vw,19px)}
.content-section{padding-block:18px}
.content-section .text-only{display:block}

body{font-size:var(--body-size,17px)}
header strong{font-size:var(--brand-size,28px)}
nav a{font-size:calc(clamp(17px,1.45vw,19px) + var(--nav-size,19px) - 19px)}
.hero h1{font-size:clamp(calc(var(--hero-size,100px) * .52),calc(7.5vw + var(--hero-size,100px) - 100px),var(--hero-size,100px))}
.section-title{font-size:clamp(calc(var(--heading-size,40px) * .7),calc(3vw + var(--heading-size,40px) - 40px),var(--heading-size,40px))}
.people article{min-width:0;overflow:hidden;padding:14px;background:#f8fafc;border:1px solid #cfdae4;border-radius:10px;overflow-wrap:anywhere}
.people article>img{display:block;width:100%;aspect-ratio:1;object-fit:cover;object-position:50% 35%;border-radius:5px}
.people h3{margin:16px 0 8px}.person-detail{display:grid;grid-template-columns:1.5em minmax(0,1fr);align-items:baseline;gap:.35em;margin:.45em 0}.person-detail>span:first-child{text-align:center}
@media(max-width:600px){.hero h1{font-size:calc(var(--hero-size,100px) * .51)}}
@media(max-width:420px){.people{grid-template-columns:minmax(0,1fr)}}

/* Share five tracks across each row of member cards. */
.people article{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:6px;align-items:start}
.people article>img{grid-row:1}.people article>h3{grid-row:2}.people article>p:not(.person-detail){grid-row:3;margin:0}
.people .birthday{grid-row:4}.people .fun-fact{grid-row:5}
.alumni-list article,.book-row{display:flex;align-items:center;gap:clamp(14px,3vw,32px);border-bottom:1px solid #d2dce4;padding:18px 0}
.alumni-list img{width:76px;height:76px;object-fit:cover;border-radius:8px}.book-row img{width:clamp(76px,15vw,126px);height:auto}.book-row h3{font-size:22px}

.paper .paper-title {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: .28em;
  align-items: baseline;
}
.paper-number {
  text-align: left;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.paper {
  display: grid;
  grid-template-columns: clamp(60px, 22%, 230px) minmax(0, 1fr);
  column-gap: clamp(12px, 3vw, 40px);
}
.paper > a { grid-area: 1 / 1; }
.paper > div { grid-area: 1 / 2; }
.paper .toc { display: block; width: 100%; height: auto; aspect-ratio: 230 / 145; }

/* The closing Before BNU section uses full-width citations. */
section > h2:last-of-type ~ article.paper { display: block; }
section > h2:last-of-type ~ article.paper > a { display: none; }

.paper .citation-body {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: .28em;
}
.paper .paper-title {
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  column-gap: inherit;
}
.citation-body > p { grid-column: 2; }

@media(max-width:720px){.hero{background-image:linear-gradient(0deg,#061e39ee,transparent),url("assets/campus-small-v2.webp")}}
