/* Layout and typography. Font Awesome supplies the original decorative icons. */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');
:root { --ink: #20242a; --muted: #6b7480; --line: #edf0f2; --blue: #245eaa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; padding-top: 5rem; background: #f8f9fa; color: var(--ink); font: 17px/1.55 Lato, Arial, sans-serif; }
a { color: #007bff; text-decoration: none; }
a:hover { color: #0056b3; text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 2.25rem; font-weight: 400; line-height: 1.12; }
h2 { font-size: 1.13rem; line-height: 1.3; margin-bottom: 1rem; }
.background h2 i { width: 1.35rem; color: var(--muted); }
.publication-links a i { font-size: .72em; margin-left: .12rem; }
.container { width: calc(100% - 30px); max-width: 1140px; margin: auto; }
.navbar { position: fixed; inset: 0 0 auto; background: #f8f9faf2; box-shadow: 0 2px 4px #00000013; z-index: 1; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.navbar a { color: var(--muted); }
#brand { font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.card { background: white; border-radius: .8rem; box-shadow: 0 2px 4px #00000013; margin-bottom: 1rem; }
.profile { padding: 3rem; }
.portrait { float: right; height: 200px; width: auto; max-width: 35%; object-fit: contain; padding: 4px; border: 1px solid #dee2e6; border-radius: .25rem; margin: 0 0 1.5rem 1.5rem; }
.bio { font-size: 1.02rem; line-height: 1.68; margin-top: 1rem; }
.bio p + p { margin-top: 1rem; }
.profile > p { margin-top: 1rem; }
.profile-links { clear: both; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; border-top: 1px solid #0000001a; padding-top: 1rem; margin-top: 1rem; font-size: 1rem; }
.profile-links a { white-space: nowrap; }
.card-heading { padding: 1rem; border-bottom: 1px solid var(--line); margin: 0; font-size: 1rem; }
.news { font-size: .96rem; }
.news-group { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 1rem; margin: 0 1rem; padding: .5rem 0; }
.news-group + .news-group { border-top: 1px solid var(--line); }
.news-entry { display: flex; gap: 1rem; justify-content: space-between; margin: .25rem 0; }
.news-entry time { align-self: flex-end; font-style: italic; }
.background { padding: 1.55rem 1.5rem 1.45rem; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.background-list { display: grid; gap: 1.1rem; }
.background-item { display: flex; align-items: flex-start; gap: .8rem; }
.logo-wrap { width: 42px; height: 42px; flex: 0 0 42px; display: flex; align-items: center; justify-content: center; border: 1px solid #e5e8ec; border-radius: .5rem; overflow: hidden; }
.logo-wrap.wide { width: 58px; flex-basis: 58px; padding: 4px; }
.logo-wrap img { max-width: 82%; max-height: 82%; object-fit: contain; }
.logo-wrap.wide img { max-width: 100%; max-height: 100%; }
.background-content { flex: 1; min-width: 0; }
.entry-heading { display: flex; align-items: baseline; gap: .4rem; justify-content: space-between; }
.entry-heading strong { font-size: 1rem; line-height: 1.35; }
.date { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.muted { color: var(--muted); }
.role { font-size: .96rem; margin-top: .08rem; }
.detail { font-size: .9rem; color: var(--muted); line-height: 1.45; margin-top: .24rem; }
.divided { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.45rem; }
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.8rem; }
.award { display: flex; justify-content: space-between; gap: .75rem; padding-left: .72rem; border-left: 3px solid #e1e6ed; font-size: .94rem; line-height: 1.35; }
.award .detail { font-size: .86rem; }
.compact-entry { margin-bottom: .58rem; font-size: .92rem; line-height: 1.4; }
.compact-entry strong, .compact-entry span { display: block; }
.compact-entry span { color: var(--muted); margin-top: .08rem; }
.publications { overflow: hidden; }
.publication-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.publication-header h2 { font-size: 1.16rem; margin-bottom: .25rem; }
.publication-header p { color: #747d87; font-size: .9rem; }
.publication-toggle { display: flex; flex-shrink: 0; border: 1px solid #d9dee5; border-radius: .55rem; padding: 3px; background: #f7f8fa; }
.publication-toggle button { border: 0; background: transparent; color: #616a74; font: 700 .9rem Lato, Arial, sans-serif; padding: .44rem .82rem; border-radius: .4rem; cursor: pointer; }
.publication-toggle button.active { background: white; color: var(--ink); box-shadow: 0 1px 4px #141c261a; }
button:focus-visible, a:focus-visible { outline: 2px solid #4a78c2; outline-offset: 2px; }
#publication-count { color: #7d8792; font-weight: 400; margin-left: .15rem; }
.publication-item { display: grid; align-items: start; border-bottom: 1px solid var(--line); }
.publication-item:last-child { border-bottom: 0; }
.selected { grid-template-columns: 132px minmax(0, 1fr); gap: 1.35rem; padding: 1.35rem 1.5rem; }
.venue { font-size: 1.05rem; line-height: 1.15; font-weight: 900; color: var(--blue); padding-top: .1rem; }
.year { font-size: .88rem; color: #727c86; margin-top: .16rem; }
.publication-type { display: inline-block; margin-top: .35rem; padding: .12rem .4rem; border: 1px solid #cdddf0; border-radius: .3rem; background: #edf4fc; color: #315f98; font-size: .72rem; font-weight: 700; line-height: 1.3; }
.highlight { display: inline-block; margin-top: .5rem; font-size: .76rem; line-height: 1.25; font-weight: 700; color: #805e12; background: #fff7db; border: 1px solid #f0dda0; padding: .23rem .42rem; border-radius: .35rem; }
.publication-item h3 { font-size: 1.15rem; line-height: 1.34; margin-bottom: .34rem; }
.authors { font-size: .94rem; line-height: 1.4; color: #444c55; }
.summary { font-size: .95rem; line-height: 1.55; color: #69727d; margin-top: .48rem; }
.publication-links { margin-top: .58rem; display: flex; flex-wrap: wrap; gap: .8rem; font-size: .9rem; font-weight: 700; }
.year-group { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: .65rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.year-group:last-child { border-bottom: 0; }
.group-year { font-size: 1.06rem; font-weight: 900; color: #4c5661; padding-top: .18rem; }
.compact { grid-template-columns: 82px minmax(0, 1fr) auto; gap: .75rem; padding: .54rem 0; border-bottom-style: dashed; }
.compact .venue { font-size: .84rem; font-weight: 800; color: #315f98; }
.compact h3 { font-size: .94rem; line-height: 1.4; margin-bottom: .08rem; }
.compact h3 a { color: inherit; }
.compact .authors { font-size: .82rem; line-height: 1.35; color: #7a838c; }
.compact-highlight { font-size: .72rem; font-weight: 700; color: #805e12; white-space: nowrap; }
footer { padding-bottom: 1rem; font-size: .96rem; font-style: italic; color: var(--muted); }
@media (max-width: 1199px) { .container { max-width: 960px; } .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) { .container { max-width: 720px; } .columns { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 767px) {
  body { font-size: 16px; padding-top: 4.7rem; }
  .container { max-width: 540px; }
  .profile { padding: 1.5rem; }
  h1 { font-size: 1.82rem; }
  .portrait { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; padding: 0; margin-left: .6rem; }
  .bio { font-size: .98rem; line-height: 1.6; }
  .publication-header { align-items: flex-start; flex-direction: column; padding: 1rem; }
  .publication-toggle { width: 100%; }
  .publication-toggle button { flex: 1; }
  .selected { grid-template-columns: 1fr; gap: .45rem; padding: 1.15rem 1.2rem; }
  .selected .venue-column { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; }
  .highlight { margin-top: 0; }
  .publication-item h3 { font-size: 1.08rem; }
  .year-group { grid-template-columns: 1fr; padding: .9rem 1.2rem; }
  .group-year { border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
  .compact { grid-template-columns: 70px minmax(0, 1fr); }
  .compact h3 { font-size: .94rem; }
  .compact-highlight { grid-column: 2; white-space: normal; }
  .entry-heading { flex-direction: column; gap: .1rem; }
  .news-entry { flex-direction: column; gap: 0; }
}
@media (max-width: 575px) { .awards { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .compact { grid-template-columns: 1fr; gap: .12rem; }
  .compact-highlight { grid-column: 1; }
  .logo-wrap { width: 38px; height: 38px; flex-basis: 38px; }
  .logo-wrap.wide { width: 50px; flex-basis: 50px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
