/* Local additions to the existing Stellar theme. */
#main .phd-notice {background:#f4eff8; border-bottom:1px solid #e3d9eb; padding:1.25em 2em; text-align:center; color:#49395e;}
#main .phd-notice p {margin:0;}
#main .phd-notice strong {color:inherit;}
#main .phd-notice a {font-weight:600; color:#604282; border-bottom:1px solid currentColor;}
#main .award {color:#27823b; font-weight:600;}
#main .align-left {text-align:left;}
/* A single centered wrapper; the navigation is in normal flow and stays
   attached to the same wrapper when it becomes sticky. */
body, input, select, textarea {font-size:clamp(18px, 1.3vw, 22px); line-height:1.6;}
#wrapper {width:1280px; max-width:calc(100% - 64px); margin:0 auto;}
#header {padding:2.5rem 1rem 1.6rem;}
#header h1 {font-size:3rem; margin:0 0 .35rem;}
#header h2 {font-size:1.45rem; margin:.2rem 0;}
#nav, #nav.alt {
  position:sticky; top:0; z-index:10000; width:100%; max-width:100%;
  padding:.6rem .75rem; background:#f7f7f7;
}
#nav ul {display:flex; justify-content:center; gap:.25rem; flex-wrap:wrap;}
#nav ul li, #nav.alt ul li {margin:0;}
#nav ul li a, #nav.alt ul li a {font-size:1.125rem; padding:0 .9rem;}
#nav + #main {padding-top:0;}
#main {min-width:0; border-radius:0 0 .25em .25em; color:#4e4e4e;}
#main > .main {padding:2.75rem clamp(1.5rem, 4vw, 3.5rem);}
#main header.major {margin:0 0 1.25rem;}
#main header.major h2 {font-size:2.125rem; margin:0;}
#main header.major h2:after {margin:.5em 0 0;}
#main section.special header.major h2:after {margin-left:auto; margin-right:auto;}
#main .phd-notice {padding:.9rem 1.5rem;}
/* Biography and portrait share the same visual center. */
#main #about .spotlight {
  display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 270px);
  align-items:center; gap:clamp(1.5rem, 3.5vw, 3.25rem); margin:0;
}
#main #about .spotlight .content {min-width:0; margin:0; text-align:left;}
#main #about .spotlight .content p {max-width:none; margin:0 0 1em;}
#main #about .spotlight .image {
  display:block; width:100%; max-width:270px; min-width:0;
  margin:0 auto; padding:.4rem; box-sizing:border-box; border-radius:4px;
}
#main #about .spotlight .image img {display:block; width:100%; height:auto; max-width:none; border-radius:2px;}
#main #about .research-links {margin:1em 0 0;}
@media screen and (max-width:980px) {
  #main #about .spotlight {grid-template-columns:minmax(0, 1fr) minmax(0, 190px); gap:1.5rem;}
}
@media screen and (max-width:736px) {
  #wrapper {max-width:calc(100% - 24px);}
  #header {padding:1.6rem .75rem 1.2rem;}
  #header h1 {font-size:2.25rem;}
  #header h2 {font-size:1.15rem;}
  #nav, #nav.alt {display:block; padding:.4rem .5rem;}
  #nav ul {gap:.1rem;}
  #nav ul li a, #nav.alt ul li a {font-size:.95rem; padding:0 .5rem;}
  #main header.major h2 {font-size:1.85rem;}
  #main > .main {padding:1.75rem 1.35rem;}
  #main #about .spotlight {grid-template-columns:minmax(0, 1fr); gap:1.25rem;}
  #main #about .spotlight .image {grid-row:1; max-width:175px;}
}
@media screen and (max-width:480px) {
  #wrapper {max-width:100%;}
  #main .phd-notice {padding:.8rem 1rem;}
  #main #about .research-links {justify-content:center;}
}
#main .research-links, #footer .footer-profiles {display:flex; flex-wrap:wrap; align-items:center; gap:0.55rem; margin:0 0 1em;}
#main .research-links .profile-icon, #footer .footer-profiles .profile-icon {
  display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px;
  border:1px solid #ded8e6; border-radius:50%; background:#fff; color:#555;
  text-decoration:none; transition:background-color .15s, border-color .15s, transform .15s;
}
.profile-icon img {display:block; width:22px; height:22px; flex:none;}
#main .research-links .profile-icon:hover, #footer .footer-profiles .profile-icon:hover {background:#f4eff8; border-color:#b6a6ca; transform:translateY(-2px);}
#main .research-links .profile-icon:focus-visible, #footer .footer-profiles .profile-icon:focus-visible {outline:2px solid #604282; outline-offset:3px;}
@media screen and (max-width:980px) {
  #main .research-links {justify-content:flex-start;}
}
@media (prefers-reduced-motion:reduce) {
  #main .profile-icon, #footer .profile-icon {transition:none;}
  #main .research-links .profile-icon:hover, #footer .footer-profiles .profile-icon:hover {transform:none;}
}
#main .publication-year {text-align:left; margin:1.25em 0 0.6em; font-weight:400;}
#main .publication-year:first-of-type {margin-top:0;}
#main .publication-table, #main .software-table {width:100%; table-layout:fixed;}
#main .publication-table td, #main .software-table td {vertical-align:middle; text-align:left; overflow-wrap:anywhere;}
#main .publication-table td:first-child, #main .software-table td:first-child {width:34%; text-align:center;}
#main .publication-table img, #main .software-table img {max-width:380px; width:100%; height:auto; vertical-align:middle;}
#main .publication-table .half-image {width:50%; max-width:190px;}
#main .news-table td:first-child {width:8em; white-space:nowrap; vertical-align:top;}
#main .news-table td:last-child, #main .service-table td {text-align:left; overflow-wrap:anywhere;}
#main .news-archive {text-align:left; margin-top:1em;}
#main .news-archive summary {cursor:pointer; font-weight:600; margin-bottom:1em;}
#main a:focus-visible, #nav a:focus-visible, #main summary:focus-visible {outline:2px solid #604282; outline-offset:3px;}
@media screen and (max-width:600px) {
  #main .phd-notice {padding:1em;}
  #main .publication-table, #main .publication-table tbody, #main .publication-table tr,
  #main .publication-table td, #main .software-table, #main .software-table tbody,
  #main .software-table tr, #main .software-table td {display:block; width:100%;}
  #main .publication-table td:first-child, #main .software-table td:first-child {width:100%; padding-bottom:0;}
  #main .publication-table img, #main .software-table img {max-width:320px;}
  #main .publication-table .half-image {max-width:160px;}
  #main .publication-table td:last-child, #main .software-table td:last-child {padding-top:0.6em;}
  #main .news-table td:first-child {width:auto; white-space:normal;}
}

/* Keep the compact mobile menu and profile buttons evenly distributed. */
#main .phd-notice strong {font-weight:600;}
@media screen and (max-width:480px) {
  #nav ul li, #nav.alt ul li {flex:0 0 calc(25% - .1rem);}
  #nav ul li a, #nav.alt ul li a {width:100%; padding:0 .15rem;}
  #main #about .research-links {gap:.35rem;}
}
