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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  padding: 50px 24px 80px;
}

.container {
  max-width: 860px;
  margin: 0 auto;
}

/* ── Profile ── */
.profile {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.profile img {
  width: 180px;
  border-radius: 3px;
  flex-shrink: 0;
}

.profile-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.profile-info .subtitle {
  font-size: 15px;
  color: #555;
  margin-bottom: 2px;
}

.profile-info .contact {
  font-size: 14px;
  color: #777;
  margin-top: 10px;
  margin-bottom: 10px;
}

.profile-info .contact a {
  color: #777;
}

.quicklinks {
  margin-top: 12px;
  font-size: 14px;
}

.quicklinks a {
  color: #1772d0;
  text-decoration: none;
  margin-right: 14px;
}

.quicklinks a:hover {
  text-decoration: underline;
}

/* ── Sections ── */
section {
  margin-bottom: 36px;
}

section h2 {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 16px;
}

section p,
section li {
  margin-bottom: 6px;
}

section ul {
  padding-left: 0;
  list-style: none;
}

/* ── Bio ── */
.bio p {
  margin-bottom: 10px;
}

.bio .bio-keyword {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: inherit;
}

/* ── Professional Activity (adjunct two-line align) ── */
.activity-adjunct {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.35em;
  row-gap: 0;
  margin-bottom: 6px;
  align-items: start;
}

.activity-adjunct strong {
  grid-column: 1;
  grid-row: 1;
}

.activity-adjunct-line1 {
  grid-column: 2;
  grid-row: 1;
}

.activity-adjunct-line2 {
  grid-column: 2;
  grid-row: 2;
}

/* ── News ── */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 6px;
  align-items: baseline;
}

.news-date {
  color: #999;
  flex-shrink: 0;
  font-size: 14px;
  min-width: 3.25rem;
  font-variant-numeric: tabular-nums;
}

/* ── Publications ── */
.pub-list {
  list-style: none;
  padding: 0;
}

.pub-entry {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.pub-entry img.thumb {
  width: 110px;
  flex-shrink: 0;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  margin-top: 3px;
}

.pub-body .pub-title {
  font-weight: 600;
  color: #111;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 3px;
}

.pub-body .pub-title a {
  color: #1772d0;
  text-decoration: none;
}

.pub-body .pub-title a:hover {
  text-decoration: underline;
}

.pub-body .pub-authors {
  font-size: 14px;
  color: #444;
  margin-bottom: 2px;
}

.pub-body .pub-authors strong {
  color: #111;
}

.pub-body .pub-venue {
  font-size: 14px;
  color: #555;
  font-style: italic;
  margin-bottom: 5px;
}

.pub-links {
  font-size: 13px;
}

.pub-links a {
  color: #1772d0;
  text-decoration: none;
  margin-right: 10px;
  border: 1px solid #aac4e8;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.pub-links a:hover {
  background: #f0f6ff;
}

/* BibTeX block */
.bibtex-block {
  display: none;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 14px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
  margin-top: 8px;
  white-space: pre;
  overflow-x: auto;
}

/* ── Publication year labels ── */
.pub-year-label {
  font-size: 13px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 18px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eee;
  list-style: none;
}

/* ── Misc sections ── */
.section-list {
  list-style: disc;
  padding-left: 20px;
}

.section-list li {
  margin-bottom: 4px;
}

/* ── Footer ── */
footer {
  margin-top: 50px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
  font-size: 13px;
  color: #aaa;
}

footer .footer-note {
  margin-top: 8px;
  font-size: 12px;
  color: #bbb;
}

footer .footer-note a {
  color: #9aa;
}

footer .footer-note a:hover {
  color: #1772d0;
}

/* ── Links ── */
a {
  color: #1772d0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 620px) {
  .profile {
    flex-direction: column;
    gap: 20px;
  }
  .profile img {
    width: 140px;
  }
  .pub-entry img.thumb {
    display: none;
  }
}
