/* =========================================================================
   Jingdan (Aria) Yang — academic website
   Layout: photo banner + sticky left profile sidebar + main column
   Type: one sans-serif family. Accent: academic navy.
   ========================================================================= */

:root{
  --bg:#FFFFFF;
  --bg-alt:#F6F8FA;
  --bg-tint:#EEF3F8;
  --line:#E2E6EB;
  --ink:#1F2429;
  --ink-2:#5A6472;
  --navy:#1B4568;
  --navy-700:#12314A;
  --teal:#2E7D8A;
  --maxw:1120px;
  --ff:"Source Sans 3","Noto Sans SC","PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--ff);font-size:16.5px;line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:var(--navy);text-decoration:none;}
a:hover{text-decoration:underline;}

.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(1.1rem,4vw,2rem);}

/* ---------- banner ------------------------------------------------------ */
.banner{
  position:relative;
  height:clamp(210px,32vw,540px);
  overflow:hidden;
  background:var(--bg-tint);
  border-bottom:1px solid var(--line);
}
.banner img{
  width:100%;height:100%;object-fit:cover;object-position:center 50%;
}
.banner__veil{
  position:absolute;inset:0;
  background:linear-gradient(90deg,
     rgba(255,255,255,.60) 0%,
     rgba(255,255,255,.50) 40%,
     rgba(255,255,255,.40) 72%,
     rgba(255,255,255,.30) 100%);
}
.banner__text{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:3.5rem;}
.banner__inner{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(1.1rem,4vw,2rem);}
.banner__title{
  color:var(--navy-700);font-size:clamp(1.35rem,3.2vw,2rem);font-weight:700;margin:0;
  letter-spacing:-.01em;text-shadow:0 1px 6px rgba(255,255,255,.95);
}
.banner__sub{
  color:var(--navy);font-size:clamp(.9rem,1.6vw,1.02rem);font-weight:600;
  margin:.3rem 0 0;text-shadow:0 1px 6px rgba(255,255,255,.95);
}
/* ---------- nav --------------------------------------------------------- */
.nav{border-bottom:1px solid var(--line);background:var(--bg);position:sticky;top:0;z-index:40;}
.nav__inner{display:flex;align-items:center;justify-content:space-between;gap:.6rem 1.5rem;flex-wrap:wrap;padding-block:.7rem;}
.brand{font-size:1rem;font-weight:700;color:var(--ink);}
.brand:hover{text-decoration:none;}
.navlinks{display:flex;gap:.15rem;flex-wrap:wrap;}
.navlinks a{font-size:.94rem;font-weight:600;color:var(--ink-2);padding:.32rem .62rem;border-radius:4px;}
.navlinks a:hover{color:var(--navy);background:var(--bg-alt);text-decoration:none;}
.navlinks a[aria-current="page"]{color:var(--navy);border-bottom:2px solid var(--navy);border-radius:0;}

/* ---------- page layout: sidebar + main --------------------------------- */
.layout{display:grid;grid-template-columns:262px 1fr;gap:2.6rem;padding-block:2rem 1rem;align-items:start;}

.side{position:sticky;top:64px;}
.side__photo{border:1px solid var(--line);border-radius:4px;overflow:hidden;margin-bottom:.9rem;max-width:158px;}
.side__photo img{width:100%;aspect-ratio:4/5;object-fit:cover;}
.side__name{font-size:1.16rem;font-weight:700;margin:0 0 .1rem;line-height:1.3;}
.side__role{font-size:.95rem;font-weight:600;color:var(--navy);margin:.1rem 0 .5rem;line-height:1.4;}
.side__meta{font-size:.9rem;color:var(--ink-2);margin:0 0 .12rem;}
.side__links{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.9rem;padding-top:.85rem;border-top:1px solid var(--line);}
.side__links a{
  font-size:.83rem;font-weight:600;color:var(--navy);
  border:1px solid var(--line);border-radius:999px;padding:.25rem .62rem;background:var(--bg);
}
.side__links a:hover{background:var(--navy);color:#fff;border-color:var(--navy);text-decoration:none;}

/* ---------- main sections ----------------------------------------------- */
.section{margin-bottom:2.2rem;}
h1,h2,h3{margin:0;font-weight:700;line-height:1.3;color:var(--ink);}
h2{
  font-size:1.08rem;color:var(--navy);text-transform:uppercase;letter-spacing:.06em;
  padding-bottom:.4rem;border-bottom:2px solid var(--navy);margin-bottom:1.05rem;
  display:flex;align-items:center;gap:.5rem;
}
h2 svg{flex:none;}
h3{font-size:1rem;}
p{margin:0 0 .8rem;}
p:last-child{margin-bottom:0;}
.muted{color:var(--ink-2);}
.small{font-size:.92rem;}

/* ---------- bubbles ----------------------------------------------------- */
.bubbles{display:flex;flex-wrap:wrap;gap:.5rem;}
.bubble{
  display:inline-block;
  font-size:.92rem;font-weight:600;
  color:var(--navy-700);
  background:var(--bg-tint);
  border:1px solid #D7E3EE;
  border-radius:999px;
  padding:.4rem .85rem;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.bubble:hover{background:var(--navy);color:#fff;border-color:var(--navy);}
.bubble--alt{background:#EAF4F4;border-color:#CFE5E5;color:#1F5E68;}
.bubble--alt:hover{background:var(--teal);color:#fff;border-color:var(--teal);}

/* ---------- illustrated cards (research areas) -------------------------- */
.cards{display:grid;grid-template-columns:1fr 1fr;gap:.85rem;}
.card{
  border:1px solid var(--line);border-radius:6px;background:var(--bg);overflow:hidden;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.card:hover{border-color:#BBCEDF;box-shadow:0 4px 14px -10px rgba(27,69,104,.5);}
.card__illus{border-bottom:1px solid var(--line);}
.card__illus svg{display:block;width:100%;height:auto;}
.card__body{padding:.7rem .9rem .8rem;}
.card h3{margin-bottom:.16rem;font-size:.97rem;}
.card p{color:var(--ink-2);font-size:.9rem;line-height:1.45;margin:0;}

/* bubbles that carry a small icon */
.bubble--icon{display:inline-flex;align-items:center;gap:.42rem;}
.bubble--icon svg{flex:none;}

/* wide illustration strip inside a section */
.strip{
  border:1px solid var(--line);border-radius:6px;background:var(--bg-tint);
  margin-bottom:1rem;overflow:hidden;
}
.strip svg{display:block;width:100%;height:auto;}

/* ---------- entries ----------------------------------------------------- */
.entry{padding:.9rem 0;border-bottom:1px solid var(--line);}
.entry:last-child{border-bottom:0;}
.entry:first-child{padding-top:0;}
.entry__head{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;align-items:baseline;}
.entry__role{font-weight:700;font-size:1rem;margin:0;}
.entry__role--flag{display:inline-flex;align-items:center;gap:.5rem;}
.entry__icon{font-size:1.15rem;line-height:1;}
.entry__when{color:var(--ink-2);font-size:.89rem;white-space:nowrap;}
.entry__org{color:var(--navy);font-size:.95rem;margin:.1rem 0 .25rem;font-weight:600;}
.entry__desc{color:var(--ink-2);font-size:.95rem;margin:0;}
ul.tight{margin:.3rem 0 0;padding-left:1.1rem;color:var(--ink-2);font-size:.95rem;}
ul.tight li{margin-bottom:.2rem;}

/* ---------- publications ------------------------------------------------ */
.pubs{margin:0;padding:0;list-style:none;}
.pubs li{padding:.68rem 0;border-bottom:1px solid var(--line);font-size:.96rem;line-height:1.55;}
.pubs li:last-child{border-bottom:0;}
.pubs .yr{font-weight:700;color:var(--navy);margin-right:.3rem;}
.pubs em{color:var(--ink-2);}
.subhead{font-weight:700;font-size:.86rem;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-2);margin:1.25rem 0 .15rem;}
.subhead:first-of-type{margin-top:0;}

/* ---------- figure ------------------------------------------------------ */
.figure{margin:0 0 1.1rem;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--bg-alt);}
.figure svg{display:block;width:100%;height:auto;}
.figure figcaption{font-size:.86rem;color:var(--ink-2);padding:.55rem .8rem;border-top:1px solid var(--line);background:var(--bg);}

/* ---------- footer ------------------------------------------------------ */
.foot{border-top:1px solid var(--line);background:var(--bg-alt);margin-top:1.5rem;}
.foot__inner{padding-block:1.4rem;display:flex;justify-content:space-between;gap:.5rem 1.5rem;flex-wrap:wrap;font-size:.9rem;color:var(--ink-2);}

/* ---------- a11y -------------------------------------------------------- */
a:focus-visible{outline:2px solid var(--navy);outline-offset:2px;}
.skip{position:absolute;left:-999px;background:var(--navy);color:#fff;padding:.5rem .9rem;z-index:100;}
.skip:focus{left:0;}

/* ---------- responsive -------------------------------------------------- */
@media (max-width:880px){
  .layout{grid-template-columns:1fr;gap:1.6rem;}
  .side{position:static;display:grid;grid-template-columns:150px 1fr;gap:1.2rem;align-items:start;
        border-bottom:1px solid var(--line);padding-bottom:1.3rem;}
  .side__photo{margin-bottom:0;}
  .cards{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .nav__inner{justify-content:center;}
  .navlinks{justify-content:center;}
  .side{grid-template-columns:1fr;}
  .side__photo{max-width:170px;}
}

/* ---------- language toggle -------------------------------------------- */
.language-toggle {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;

  min-height: 0;
  padding: 6px 10px;

  border: 1px solid #c8d3dd;
  border-radius: 8px;
  background: #ffffff;
  color: #596575;

  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}

.language-toggle:hover {
  background: #f5f7f9;
  color: #1b4568;
  border-color: #aebdca;
}

.language-toggle:focus-visible {
  outline: 2px solid #1b4568;
  outline-offset: 2px;
}

.language-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
}