:root {
  --text-color: #202124;
  --muted-color: #5f6368;
  --link-color: #1a0dab;
  --navy: #1a2b4c;
  --name-color: #3d85c6;
  --border-color: #e0e0e0;
  --max-width: 1000px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.65;
  background: #ffffff;
  font-size: 14px;
}

header.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 20px 0 20px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--name-color);
  margin: 0 0 14px 0;
}

nav.site-nav {
  display: flex;
  gap: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--muted-color);
  padding-bottom: 12px;
  border-bottom: 3px solid transparent;
}

nav.site-nav a:hover {
  color: var(--text-color);
}

nav.site-nav a.active {
  color: #1a2b4c;
  border-bottom-color: var(--navy);
  font-weight: 600;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 80px 20px;
}

main h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--name-color);
  margin-top: 40px;
  margin-bottom: 10px;
}

main h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: black;
  margin-top: 26px;
  margin-bottom: 8px;
}

main h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: black;
  margin-top: 0;
  margin-bottom: 12px;
}

main p {
  margin: 0 0 16px 0;
}

a {
  color: var(--link-color);
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 32px 0;
}

/* Intro bio layout: photo left, text right */
.intro-block {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.intro-photo {
  flex: 0 0 auto;
}

.intro-photo img {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
}

.intro-text {
  flex: 1 1 auto;
  min-width: 0;
}

.intro-text p {
  margin: 0 0 16px 0;
}

/* Job Market Paper layout: 50/50 columns for title + intro paragraph only */
.jmp-block {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 20px;
}

.jmp-text {
  flex: 1 1 50%;
  min-width: 0;
}

.jmp-text h2 {
  margin-top: 0;
  color: var(--navy);
}

.jmp-image {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jmp-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Bullet list spans full page width below the two-column block */
.jmp-list {
  margin: 20px 0 0 0;
  padding-left: 24px;
}

.jmp-list li {
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .intro-block,
  .jmp-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .intro-photo {
    margin-bottom: 12px;
  }
  .intro-photo img {
    width: 160px;
  }
  .jmp-text,
  .jmp-image {
    flex: 1 1 auto;
    width: 100%;
  }
  .jmp-image {
    margin-top: 20px;
  }
}

.paper-block {
  margin-bottom: 8px;
}

.paper-title {
  font-weight: 600;
  color: var(--navy);
}

.paper-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--muted-color);
  margin: 4px 0 8px 0;
}

.abstract {
  display: none;
  border-left: 3px solid var(--border-color);
  padding-left: 14px;
  margin: 8px 0 18px 0;
  color: var(--muted-color);
  font-size: 0.97rem;
}

.abstract.open {
  display: block;
}

.toggle-link {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-decoration: underline;
}

ol.talks-list, ul.talks-list {
  padding-left: 0;
  list-style: none;
  margin: 0 0 20px 0;
}

ol.talks-list li, ul.talks-list li {
  margin-bottom: 8px;
}

/* Collapsible "Before 2026..." section */
.collapsible-title {
  cursor: pointer;
  user-select: none;
}

.collapsible-title:hover {
  opacity: 0.8;
}

.toggle-indicator {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted-color);
}

.collapsible-content {
  display: none;
}

.collapsible-content.open {
  display: block;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 60px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted-color);
  border-top: 1px solid var(--border-color);
}