/* ── Typography ── */
body {
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
}

/* ── Navbar ── */
.navbar {
  border-bottom: 1px solid #e5e5e5 !important;
  background-color: #fff !important;
  padding: 0 2rem;
}
/* Override Bootstrap dark theme on navbar */
.navbar[data-bs-theme="dark"],
[data-bs-theme="dark"] .navbar {
  --bs-navbar-color: #555;
  --bs-navbar-hover-color: #0070c0;
  --bs-navbar-active-color: #0070c0;
  --bs-navbar-brand-color: #1a1a1a;
  --bs-navbar-brand-hover-color: #1a1a1a;
  background-color: #fff !important;
}
.navbar-brand {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a !important;
}
.navbar .nav-link {
  color: #555 !important;
  font-size: 0.9rem;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #0070c0 !important;
}
/* Search icon */
.navbar #quarto-search .aa-DetachedSearchButton,
.navbar .quarto-navbar-tools a {
  color: #555 !important;
}

/* ── Page layout: two-column on desktop ── */
.page-columns {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── About page sidebar ── */
.about-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 48px 32px 48px 0;
  border-right: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.about-sidebar .avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  background: #ddd;
}

.about-sidebar h2 {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 4px;
  border: none;
  padding: 0;
  color: #1a1a1a;
}

.about-sidebar .role {
  font-size: 0.82rem;
  color: #666;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.4;
}

.about-sidebar .social-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-sidebar .social-links a {
  font-size: 0.82rem;
  color: #555;
  text-decoration: none;
  padding: 3px 0;
  border-left: 2px solid transparent;
  padding-left: 8px;
}

.about-sidebar .social-links a:hover {
  color: #0070c0;
  border-left-color: #0070c0;
}

/* ── Main content ── */
.about-main {
  flex: 1;
  padding: 48px 0 48px 48px;
  max-width: 700px;
}

.about-main h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 40px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e5e5;
  color: #0070c0;
}

.about-main h2:first-child {
  margin-top: 0;
}

/* ── Publications list ── */
.pub-entry {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pub-year {
  width: 36px;
  flex-shrink: 0;
  color: #999;
  font-size: 0.82rem;
  padding-top: 2px;
}

.act-date {
  width: 80px;
  flex-shrink: 0;
  color: #999;
  font-size: 0.82rem;
  padding-top: 2px;
}

.pub-body {
  flex: 1;
}

.pub-title a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  line-height: 1.4;
}

.pub-title a:hover {
  color: #0070c0;
  text-decoration: underline;
}

.pub-links {
  margin-left: 8px;
  font-size: 0.8rem;
  font-weight: 400;
}

.pub-links a {
  color: #0070c0;
  text-decoration: none;
  border: 1px solid #0070c0;
  border-radius: 3px;
  padding: 1px 5px;
}

.pub-links a:hover {
  background: #0070c0;
  color: #fff;
}

.pub-meta {
  color: #666;
  font-size: 0.85rem;
  margin-top: 3px;
}

.pub-abstract {
  color: #555;
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Venue tags ── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 5px;
  vertical-align: middle;
  font-style: normal;
  font-weight: 500;
}

.tag-conf    { background: #dbeafe; color: #1d4ed8; }
.tag-journal { background: #dcfce7; color: #166534; }
.tag-review  { background: #fef9c3; color: #854d0e; }
.tag-preprint { background: #f3f4f6; color: #4b5563; }
.tag-thesis  { background: #f3e8ff; color: #6b21a8; }
.tag-mag     { background: #fff7ed; color: #9a3412; }

/* ── Full-width layout shim ── */
.about-layout {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-layout { flex-direction: column; }
  .about-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    position: static;
    height: auto;
    padding: 32px 24px;
  }
  .about-main { padding: 32px 0; }
}

/* ── Suppress Quarto default chrome we don't want ── */
.quarto-title, .quarto-title-meta, .description { display: none; }
#quarto-document-content { padding-top: 0; margin-top: 0; }
footer.footer { display: none; }
#quarto-margin-sidebar { display: none; }

/* custom page-layout: strip Quarto's padding from the main content wrapper */
#quarto-content {
  padding: 0 !important;
  margin: 0 !important;
}
#quarto-content > * {
  padding: 0 !important;
  margin: 0 !important;
}
.quarto-container {
  padding: 0 !important;
}
