:root{
  --ink: #b00000;
  --link: #b00000;
  --link-hover: #ff0000;
  --muted: #555;
  --line: #ddd;
  --bg-soft: #f6f6f6;
  --tile: #f9f9f9;
  --text: #333;
}

*{ margin:0; padding:0; box-sizing:border-box; }

body{
  font-family: Georgia, serif;
  line-height:1.6;
  color:var(--text);
  background:#fff;
  background-color: white !important;
}

.container{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  min-height:100vh;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 2px solid var(--line);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.top-nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}

.top-nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.05em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  cursor: pointer;
}

.top-nav-menu a:hover {
  color: var(--ink);
}

.top-nav-menu a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.sidebar{
  /* sidebar removed from markup; keep neutral fallback styles */
  width: 0; min-width: 0; max-width: 0; overflow: visible; padding: 0; border: none; background: transparent; position: static; height: auto;
}

.profile-photo{
  width:300px; height:300px;
  min-width:200px; min-height:200px;
  flex-shrink: 0; /* prevent flex containers from shrinking the image */
  border-radius:50% !important;
  margin:0 auto 10px;
  display:block; object-fit:cover;
  border:1px solid #fff;
  box-shadow:0 2px 5px rgba(0,0,0,.1);
  overflow: hidden;
.profile-photo{
  width:300px; height:300px;
  min-width:200px !important; 
  min-height:200px !important; 
  flex-shrink: 0 !important; /* prevent flex containers from shrinking the image */
  border-radius:50% !important;
  margin:0 auto 10px;
  display:block; object-fit:cover;
  border:1px solid #fff;
  box-shadow:0 2px 5px rgba(0,0,0,.1);
  overflow: hidden;
}
}

.sidebar h2{
  font-size:1.3em;
  color:var(--ink);
  margin-bottom:10px;
  text-align:center;
}

.sidebar .subtitle{
  text-align:center;
  color:var(--muted);
  font-size:.95em;
  margin-bottom:20px;
  font-style:italic;
}

.contact-info{
  margin:25px 0;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.contact-info p{
  margin:10px 0;
  font-size:1em;
  color:#555;
  display:flex; 
  align-items:center;
  gap:10px;
}

.contact-info .icon {
  font-size: 1.25em;
  width: 28px;
  text-align: center;
  margin-right: 8px;
  color: var(--muted);
  display: inline-block;
}

.contact-info p a:hover { 
  color: var(--link-hover) !important; 
  text-decoration: underline; 
}

.icons {
    list-style-type: none;
    font-size: xxx-large;
    padding: 0;
    display: flex;
    justify-content: space-between;
    width: 95%;
    max-width: 500px;
    margin: 10px auto;
}

.icons li {
    display: inline;
    width: 42px;
}

.icons a {
    color: var(--muted);
}

.icons a:hover {
    color: var(--link-hover) !important; 
  text-decoration: underline; 
}

.nav-menu{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.nav-menu a{
  display:block;
  padding:10px 15px;
  color:var(--link);
  text-decoration:none;
  margin:5px 0;
  border-radius:5px;
  transition:all .3s;
  cursor:pointer;
}

.nav-menu a:hover,
.nav-menu a.active{
  background:#e8e8e8;
  color:var(--link-hover);
}

.main-content{
  flex: 1;
  /* sidebar removed: content should span full width */
  margin-left: 0;
  margin-top: 60px;
  padding: 40px 70px;
}

.content-section{
  display:none;
  max-width: 980px;
  margin: 0 auto;
  padding-inline: 4px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-section.active{ display:block; }

h1{
  color:var(--ink);
  font-size:2.2em;
  margin-bottom:30px;
  padding-bottom:10px;
  border-bottom:3px double var(--line);
}

h2{
  color:var(--ink);
  font-size:1.5em;
  margin:30px 0 20px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
}

h3{
  color:var(--ink);
  font-size:1.2em;
  margin:20px 0 15px;
}

p{ margin-bottom:15px; }

.intro{
  font-size:1.1em;
  line-height:1.7;
  margin-bottom:30px;
  text-align: justify;
}

.research-item{
  background: var(--tile);
  padding: 24px 28px;
  margin: 20px 0;
  border-left: 4px solid var(--ink);
  border-radius: 0 5px 5px 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.research-item:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.research-item img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pub-list{
  list-style:none;
  counter-reset:pub-counter;
}
.pub-list li{
  margin:20px 0;
  padding-left:35px;
  position:relative;
  counter-increment:pub-counter;
}
.pub-list li::before{
  content:counter(pub-counter) ".";
  position:absolute;
  left:0;
  font-weight:bold;
  color:var(--ink);
}

.news-list{ list-style:none; }
.news-list li{
  margin:15px 0;
  padding-left:25px;
  position:relative;
}
.news-list li::before{
  content:"▸";
  position:absolute; left:0;
  color:var(--ink); font-weight:bold;
}
.news-date{ font-weight:bold; color:var(--ink); margin-right:10px; }

a{ color:var(--link); text-decoration:none; transition:all .3s; }
a:hover{ color:var(--link-hover); text-decoration:underline; }

.cv-download{
  display:inline-block;
  padding:12px 30px;
  background:var(--ink);
  color:#fff;
  border-radius:5px;
  margin:20px 0;
  transition:background .3s;
}
.cv-download:hover{ background:#172a63; text-decoration:none; }

@media (max-width:768px){
  .container{ flex-direction:column; }
  .top-nav { 
    padding: 0 10px; 
    height: 50px;
  }
  .top-nav-menu { 
    gap: 15px; 
    font-size: 1em; 
  }
  .sidebar{
    width:100%; 
    position:relative; 
    height:auto;
    border-right:none; 
    border-bottom:1px solid var(--line);
    top: 0;
    padding-top: 40px;
  }
  .profile-photo{
    width:200px;
    height:200px;
    min-width:200px; min-height:200px;
    margin-top: 10px;
  }
  .main-content{ 
    margin-left:0; 
    margin-top: 50px;
    padding:30px 20px; 
  }
  
  body {
    padding-top: 50px;
  }
  
  .research-item img {
    max-width: 100% !important;
    margin: 15px 0;
  }
  
  .research-item {
    padding: 20px 16px;
  }
}
/* Sidebar state rules removed (sidebar is no longer present) */

/* Utility classes moved from inline styles in HTML */
.contact-link { color: #555; }
.centered-block { text-align: center; margin: 20px 0; }
.responsive-image { max-width: 95%; height: auto; display: block; margin: 0 auto; }
.centered-cta { text-align: center; margin-top: 30px; }
.view-all-link { font-size: 1.1em; }
.mt-100 { margin-top: 100px; }

/* Text utilities */
.justified { text-align: justify; }

/* Ensure list markers are inside content areas and align with text width */
#site-container .content-section ul,
#site-container .content-section ol,
#site-container .intro ul,
#site-container .home-right ul {
  list-style-position: inside;
  padding-left: 0.85rem; /* small padding so marker rests within content */
  margin-left: 0; /* avoid extra left gutter */
}

/* For conventional outside markers but properly spaced, override where needed */
#site-container .content-section ul.outside,
#site-container .content-section ol.outside {
  list-style-position: outside;
  padding-left: 1.25rem;
}


#group_article div.bibbase_group i+span { display: none; }
#group_inproceedings div.bibbase_group i+span { display: none; }
#group_mastersthesis div.bibbase_group i+span { display: none; }
#group_phdthesis div.bibbase_group i+span { display: none; }
#group_techreport div.bibbase_group i+span { display: none; }
#group_unpublished div.bibbase_group i+span { display: none; }
#group_incollection div.bibbase_group i+span { display: none; }
#group_misc div.bibbase_group i+span { display: none; }

#group_article div.bibbase_group i:after { content: " Journal Articles" }
#group_inproceedings div.bibbase_group i:after { content: " Conference Publications" }
#group_mastersthesis div.bibbase_group i:after { content: " Master's Thesis" }
#group_phdthesis div.bibbase_group i:after { content: " PhD Thesis" }
#group_techreport div.bibbase_group i:after { content: " Technical Report" }
#group_unpublished div.bibbase_group i:after { content: " Unpublished" }
#group_incollection div.bibbase_group i:after { content: " In Collection" }
#group_misc div.bibbase_group i:after { content: "Forthcoming" }

/* Compact sidebar/profile block and home two-column layout */
.sidebar-profile { text-align: center; }
.sidebar-icons, .home-icons { list-style: none; padding: 0; margin: 12px 0 0 0; display: flex; gap: 6px; justify-content: center; align-items: center; }
.sidebar-icons, .home-icons a { color: var(--muted); }
.sidebar-icons, .home-icons a:hover { color: var(--link-hover) !important; text-decoration: underline; }
.sidebar-icons li a, .home-icons li a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; background: transparent; color: inherit; text-decoration: none; }
.sidebar-icons li a i, .home-icons li a i { font-size: xx-large; }

.home-layout { display: flex; gap: 32px; align-items: center; min-height: calc(100vh - 120px); }
.home-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 320px !important;
  min-width: 320px !important;
  max-width: 340px !important;
  flex-shrink: 0 !important;
}

.profile-photo-wrapper {
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
}
.profile-photo {
  width: 320px !important;
  height: 320px !important;
  min-width: 320px !important;
  min-height: 320px !important;
  max-width: 320px !important;
  max-height: 320px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  margin: 0 auto 10px;
  display: block;
  object-fit: cover;
  border: 1px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  overflow: hidden;
}
.home-right { display: block; flex: 1 1 70%; }

/* High-specificity layout anchors to resist third-party CSS overrides */
#site-container .main-content { margin-left: 0 !important; width: auto !important; max-width: none !important; }
#site-container .home-layout { min-height: calc(100vh - 120px) !important; display: flex !important; }

@media (max-width: 768px) {
  .home-layout { flex-direction: column; padding: 24px; min-height: auto; }
  .home-left { margin-bottom: 16px; flex: none; }
  .sidebar { position: relative; width: 100%; height: auto; border-right: none; }
  .sidebar-icons, .home-icons { justify-content: flex-start; }
}