/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

a { color: #b00; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
nav {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 2px solid #b00;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
nav a.active {
  border-bottom: 2px solid #b00;
}

/* ── Header / profile card ── */
.profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.profile img {
  width: 160px;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.profile-info h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  color: #222;
}
.profile-info .title {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 0.75rem;
}
.profile-info p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
}

/* ── Sections ── */
section { margin-bottom: 2rem; }

h2 {
  font-size: 1.25rem;
  color: #b00;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  color: #444;
  margin: 1.25rem 0 0.5rem;
}

h4 {
  font-size: 1rem;
  color: #555;
  margin: 1rem 0 0.4rem;
}

ul, ol {
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* ── Publications ── */
.pub-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: #b00;
  margin: 1.5rem 0 0.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.2rem;
}
.pub-list {
  list-style: none;
  padding-left: 0;
}
.pub-list li {
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  border-left: 3px solid #eee;
}
.pub-list li:hover {
  border-left-color: #b00;
}

/* ── Students ── */
.student-section h3 {
  color: #b00;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.2rem;
}
.student-list {
  list-style: decimal;
  padding-left: 1.5rem;
}
.student-list li {
  margin-bottom: 0.75rem;
}
.student-list .topic {
  color: #666;
  font-style: italic;
}

/* ── Service table ── */
.service-year {
  font-size: 1.05rem;
  font-weight: 700;
  color: #b00;
  padding-top: 1rem;
}
.service-table {
  width: 100%;
  border-collapse: collapse;
}
.service-table td {
  padding: 0.25rem 0.75rem 0.25rem 0;
  font-size: 0.95rem;
  vertical-align: top;
}
.service-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  width: 140px;
}
.service-table td:last-child {
  white-space: nowrap;
  color: #666;
  width: 180px;
}
.service-table .year-row td {
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #b00;
  border-bottom: 1px solid #eee;
}

/* ── Footer ── */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid #b00;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}
footer a { color: #888; }
footer a:hover { color: #b00; }

/* ── Responsive ── */
@media (max-width: 640px) {
  body { padding: 0 1rem 2rem; }
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .profile img { width: 120px; }
  nav { gap: 1rem; justify-content: center; }
  .service-table td:last-child { display: none; }
}
