/* ---------- Global ---------- */

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  background: #fff;
  color: #222;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Page layout ---------- */

.page {
  display: grid;
  grid-template-columns: 360px 1fr;  /* increase if needed */
  column-gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.left  { grid-column: 1; }
.right { grid-column: 2; }


.left,
.right {
  padding-bottom: 30px;
}

.right section {
  margin-bottom: 0px;   /* instead of 30px */
}

/* ---------- Profile / sidebar ---------- */

.profile-pic {
  width: 100%;
  max-width: 180px;
  border-radius: 4px;
}

.subtitle {
  color: #666;
  margin-top: 0;
}

.links a {
  text-decoration: none;
  color: #0066cc;
}

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

/* ---------- Sections ---------- */

section {
  margin-bottom: 30px;
}

h2 {
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 10px;   /* THIS is key */
}

/* ---------- Paper figures (left column) ---------- */

.paper-figure {
  margin: 0;
  padding: 0;
  text-align: center;
}

.paper-figure img {
  width: 100%;        /* ← fill the column */
  height: auto;
  max-width: none;   /* ← CRUCIAL: removes hidden caps */
margin: 0;
  padding: 0;
 text-align: center;
}

.paper-figure figcaption {
  font-size: 0.8em;
  line-height: 1.25;
  margin-top: 5px;
  color: #555;
}

/* ---------- Paper text (right column) ---------- */

.paper-text p {
  margin-top: 0;
}

/* ---------- Standalone figures (if any) ---------- */

.figure {
  width: 400px;
  max-width: 100%;
  margin: 20px auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .page {
    grid-template-columns: 1fr;
  }
}

.teaching-item {
  margin-bottom: 16px;
}

.teaching-role {
  font-weight: 500;
}

.teaching-meta {
  font-size: 0.9em;
  color: #666;
}

.teaching-desc {
  font-size: 0.9em;
  margin-top: 2px;
}

p {
  text-align: justify;
}

