/* Small adaptations of the supplied Hugo Academic template. */
:root { --brand-orange: #E77500; }
a, a:hover, a:focus { color: var(--brand-orange); }
#navbar-main .navbar-brand, #navbar-main .navbar-nav .nav-link { color: var(--brand-orange); }
#navbar-main .navbar-nav .nav-link.active { color: var(--brand-orange) !important; }
html { font-size: 18px; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { overflow-wrap: break-word; }
.site-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 48px; padding-bottom: 40px; }
.profile-sidebar { position: sticky; top: 100px; }
#profile { padding: 0; }
.main-content { min-width: 0; }
.biography { font-size: calc(1rem - 2px); }
.content-section { margin-bottom: 48px; }
.content-section:last-child { margin-bottom: 0; }
.section-title { margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid #d9dfe4; font-size: 1.45rem; font-weight: 700; line-height: 1.35; }
.portrait-title h1 { font-size: 1.75em; font-weight: 300; margin: 20px 0 10px; }
.portrait-title h3 { font-size: 1rem; line-height: 1.5; }
.university-affiliation { display: inline-flex; align-items: center; gap: 8px; }
.university-logo { width: 28px; height: 36px; flex: 0 0 28px; object-fit: contain; }
.profile-photo { overflow: hidden; background: #eef0f3; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.65); transform-origin: 50% 28%; }
.profile-icon { width: 1.7rem; height: 1.7rem; display: block; }
.network-icon { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 0; }
.network-icon li { display: block; margin: 0; }
.network-icon a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.cv-icon { font-size: 1.45rem; font-weight: 700; line-height: 1; }
.paper-entry + .paper-entry { margin-top: 30px; }
.paper-entry .article-title { margin: 0 0 8px; font-size: calc(1.05rem - 2px); font-weight: 700; line-height: 1.5; }
.paper-entry .article-title a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.paper-coauthors { margin: 0 0 12px; color: #555; font-size: .9rem; line-height: 1.5; }
.paper-entry .article-style { font-size: .95rem; }
.paper-entry .article-style p:last-child { margin-bottom: 0; }
.paper-abstract { margin-top: 12px; }
.paper-abstract > summary { display: inline-flex; align-items: center; gap: .35em; list-style: none; cursor: pointer; color: var(--brand-orange); padding: 4px 0; font-size: .85rem; line-height: 1.5; }
.paper-abstract > summary::-webkit-details-marker { display: none; }
.paper-abstract > summary:hover > span:first-child { text-decoration: underline; }
.abstract-arrow { display: inline-block; }
.paper-abstract[open] .abstract-arrow { transform: rotate(180deg); }
.paper-abstract > summary:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 4px; }
.paper-abstract > .article-style { margin-top: 16px; }
.teaching-content h3:first-child { margin-top: 0; }
.teaching-role { color: #666; font-size: .9rem; margin-bottom: 12px; }
.course-list { list-style: none; padding: 0; margin: 0 0 36px; font-size: .9rem; }
.course-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 8px 0; }
.course-list li > span:last-child { white-space: nowrap; color: #666; }
.site-navigation { display: flex; flex-direction: row; margin-right: auto; }
.menu-toggle { display: none; border: 0; padding: 10px; background: transparent; color: #34495e; cursor: pointer; }
.site-footer { margin: 0; padding: 40px 0; text-align: center; }
.site-footer p { margin: 0 0 8px; }
.back-to-top { font-size: .75rem; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 2000; background: #fff; padding: 12px 20px; }
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 4px; }
@media (max-width: 991.98px) {
  html { font-size: 16px; scroll-padding-top: 68px; }
  .site-layout { display: block; padding-top: 32px; }
  .profile-sidebar { position: static; margin-bottom: 40px; }
  #navbar-main .container { position: relative; }
  .menu-toggle { display: flex; }
  #navbar-main .site-navigation { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; margin: 0; padding: 8px 24px 16px; background: #fff; box-shadow: 0 6px 10px rgba(0,0,0,.08); }
  .js #navbar-main .site-navigation { display: none; }
  .js #navbar-main .site-navigation.is-open { display: flex; }
  #navbar-main .navbar-brand { margin-right: auto; }
  #navbar-main .nav-link { padding: 10px 0; }
  #profile { padding-top: 0; }
  .section-title { font-size: 1.35rem; }
}
@media (max-width: 575.98px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .course-list li { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .home-section { animation: none; } }
